fix resp error
This commit is contained in:
parent
db56bfc546
commit
ec8ed62f2b
1 changed files with 7 additions and 7 deletions
|
|
@ -620,7 +620,7 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
.ToList();
|
||||
|
||||
if (data.Count == 0)
|
||||
return Error("ไม่พบข้อมูลในระบบ");
|
||||
return Error("ไม่พบข้อมูลในระบบ", 404);
|
||||
|
||||
//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 NotFound("ไม่พบข้อมูลในระบบ");
|
||||
return Error("ไม่พบข้อมูลในระบบ", 404);
|
||||
|
||||
var examName = data.First().ExamName;
|
||||
|
||||
|
|
@ -839,7 +839,7 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
.ToListAsync();
|
||||
|
||||
if (data.Count == 0)
|
||||
return NotFound("ไม่พบข้อมูลในระบบ");
|
||||
return Error("ไม่พบข้อมูลในระบบ", 404);
|
||||
|
||||
var examName = data.First().ExamName;
|
||||
|
||||
|
|
@ -948,7 +948,7 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
.FirstOrDefaultAsync(x => x.Id == id);
|
||||
|
||||
if (periodExam == null)
|
||||
return NotFound("ไม่พบข้อมูลการรับสมัครสอบ");
|
||||
return Error("ไม่พบข้อมูลการรับสมัครสอบ", 404);
|
||||
|
||||
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 NotFound("ไม่พบข้อมูลในระบบ");
|
||||
return Error("ไม่พบข้อมูลในระบบ", 404);
|
||||
|
||||
var examName = data.First().ExamName;
|
||||
|
||||
|
|
@ -1087,7 +1087,7 @@ namespace BMA.EHR.Report.Service.Controllers
|
|||
.FirstOrDefaultAsync(x => x.Id == id);
|
||||
|
||||
if (periodExam == null)
|
||||
return NotFound("ไม่พบข้อมูลการรับสมัครสอบ");
|
||||
return Error("ไม่พบข้อมูลการรับสมัครสอบ", 404);
|
||||
|
||||
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 NotFound("ไม่พบข้อมูลในระบบ");
|
||||
return Error("ไม่พบข้อมูลในระบบ", 404);
|
||||
|
||||
var examName = data.First().ExamName;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue