แก้ชื่อฟังก์ชันประวัติการศึกษา
This commit is contained in:
parent
9e4850f6bf
commit
af00016801
1 changed files with 6 additions and 21 deletions
|
|
@ -709,23 +709,8 @@ namespace BMA.EHR.Placement.Service.Controllers
|
||||||
return Success();
|
return Success();
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("education/{personalId:length(36)}")]
|
|
||||||
public async Task<ActionResult<ResponseObject>> UpdateEducation([FromBody] PersonEducationRequest req, Guid personalId)
|
|
||||||
{
|
|
||||||
var person = await _context.PlacementProfiles.FindAsync(personalId);
|
|
||||||
if (person == null)
|
|
||||||
return Error(GlobalMessages.DataNotFound, 404);
|
|
||||||
|
|
||||||
person.LastUpdateFullName = FullName ?? "System Administrator";
|
|
||||||
person.LastUpdateUserId = UserId ?? "";
|
|
||||||
person.LastUpdatedAt = DateTime.Now;
|
|
||||||
_context.SaveChanges();
|
|
||||||
|
|
||||||
return Success();
|
|
||||||
}
|
|
||||||
|
|
||||||
[HttpPut("education/{personalId:length(36)}")]
|
[HttpPut("education/{personalId:length(36)}")]
|
||||||
public async Task<ActionResult<ResponseObject>> UpdateEducationByPerson([FromBody] PersonEducationRequest req, Guid personalId)
|
public async Task<ActionResult<ResponseObject>> UpdateEducation([FromBody] PersonEducationRequest req, Guid personalId)
|
||||||
{
|
{
|
||||||
var education = await _context.PlacementEducations
|
var education = await _context.PlacementEducations
|
||||||
.Include(x => x.PlacementProfile)
|
.Include(x => x.PlacementProfile)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue