Compare commits

..

No commits in common. "c79ea6a2dea2405493123f0642631cc4a3183c4e" and "75f9d53af062be7c6f340a91bd6daefe6c7576ef" have entirely different histories.

View file

@ -620,7 +620,7 @@ namespace BMA.EHR.Report.Service.Controllers
.ToList();
if (data.Count == 0)
return Error("ไม่พบข้อมูลในระบบ", 404);
return Error("ไม่พบข้อมูลในระบบ");
//var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Report", "Recruit", $"rptPassExamList.trdp");
//ReportPackager reportPackager = new ReportPackager();
@ -699,7 +699,7 @@ namespace BMA.EHR.Report.Service.Controllers
}).ToListAsync();
if (data.Count == 0)
return Error("ไม่พบข้อมูลในระบบ", 404);
return NotFound("ไม่พบข้อมูลในระบบ");
var examName = data.First().ExamName;
@ -839,7 +839,7 @@ namespace BMA.EHR.Report.Service.Controllers
.ToListAsync();
if (data.Count == 0)
return Error("ไม่พบข้อมูลในระบบ", 404);
return NotFound("ไม่พบข้อมูลในระบบ");
var examName = data.First().ExamName;
@ -948,7 +948,7 @@ namespace BMA.EHR.Report.Service.Controllers
.FirstOrDefaultAsync(x => x.Id == id);
if (periodExam == null)
return Error("ไม่พบข้อมูลการรับสมัครสอบ", 404);
return NotFound("ไม่พบข้อมูลการรับสมัครสอบ");
var data = await _context.Candidates.AsQueryable()
.Include(x => x.PeriodExam)
@ -967,7 +967,7 @@ namespace BMA.EHR.Report.Service.Controllers
}).ToListAsync();
if (data.Count == 0)
return Error("ไม่พบข้อมูลในระบบ", 404);
return NotFound("ไม่พบข้อมูลในระบบ");
var examName = data.First().ExamName;
@ -1087,7 +1087,7 @@ namespace BMA.EHR.Report.Service.Controllers
.FirstOrDefaultAsync(x => x.Id == id);
if (periodExam == null)
return Error("ไม่พบข้อมูลการรับสมัครสอบ", 404);
return NotFound("ไม่พบข้อมูลการรับสมัครสอบ");
var candidates = await _context.Candidates.AsQueryable()
.Include(x => x.PeriodExam)
@ -1112,7 +1112,7 @@ namespace BMA.EHR.Report.Service.Controllers
.ToList();
if (data.Count == 0)
return Error("ไม่พบข้อมูลในระบบ", 404);
return NotFound("ไม่พบข้อมูลในระบบ");
var examName = data.First().ExamName;