เพิ่มฟิว เบอร ให้apiข้อมูลผู้สมัคร

This commit is contained in:
Kittapath 2023-03-24 13:38:26 +07:00
parent 7f792bb8fd
commit 44d18ff74c
4 changed files with 160 additions and 37 deletions

View file

@ -64,6 +64,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
CitizenDate = x.CitizenDate,
Email = x.Email,
CitizenId = x.CitizenId,
Telephone = x.Telephone,
MobilePhone = x.MobilePhone,
Knowledge = x.Knowledge,
})
.FirstOrDefaultAsync();
}
@ -295,6 +298,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Services
candidate.Email = updated.Email;
candidate.CitizenId = updated.CitizenId;
candidate.CitizenDate = updated.CitizenDate;
candidate.Telephone = updated.Telephone;
candidate.MobilePhone = updated.MobilePhone;
candidate.Knowledge = updated.Knowledge;
await _context.SaveChangesAsync();
}