Fix [Bug สรรหาคัดเลือกผู้พิการ] กรณีสร้างรอบสอบใหม่และอัปรูปและเอกสารเลยระบบ error #1399
This commit is contained in:
parent
55128d5b43
commit
caad36949b
1 changed files with 4 additions and 4 deletions
|
|
@ -469,7 +469,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
||||||
if (req == null)
|
if (req == null)
|
||||||
return Error(GlobalMessages.InvalidRequestParam, (int)HttpStatusCode.BadRequest);
|
return Error(GlobalMessages.InvalidRequestParam, (int)HttpStatusCode.BadRequest);
|
||||||
|
|
||||||
await _context.PeriodExams.AddAsync(new PeriodExam
|
var periodExam = new PeriodExam
|
||||||
{
|
{
|
||||||
Year = req.Year,
|
Year = req.Year,
|
||||||
Name = req.Name,
|
Name = req.Name,
|
||||||
|
|
@ -492,11 +492,11 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
||||||
LastUpdatedAt = DateTime.Now,
|
LastUpdatedAt = DateTime.Now,
|
||||||
LastUpdateUserId = UserId ?? "",
|
LastUpdateUserId = UserId ?? "",
|
||||||
LastUpdateFullName = FullName ?? "System Administrator",
|
LastUpdateFullName = FullName ?? "System Administrator",
|
||||||
});
|
};
|
||||||
|
await _context.PeriodExams.AddAsync(periodExam);
|
||||||
await _context.SaveChangesAsync();
|
await _context.SaveChangesAsync();
|
||||||
|
|
||||||
return Success();
|
return Success(periodExam);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue