แก้ให้ return แค่ id

This commit is contained in:
Bright 2025-07-09 16:50:57 +07:00
parent caad36949b
commit 8b5a46cb52

View file

@ -496,7 +496,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
await _context.PeriodExams.AddAsync(periodExam); await _context.PeriodExams.AddAsync(periodExam);
await _context.SaveChangesAsync(); await _context.SaveChangesAsync();
return Success(periodExam); return Success(periodExam.Id);
} }
catch (Exception ex) catch (Exception ex)
{ {