Compare commits

..

No commits in common. "b637734690734b291aed34f58ea93cbd33f74fad" and "6cc9ad5dd6024abb10d05b2e889cb3d525276b2e" have entirely different histories.

View file

@ -699,7 +699,7 @@ namespace BMA.EHR.Report.Service.Controllers
}).ToListAsync();
if (data.Count == 0)
throw new Exception("ไม่พบข้อมูลในระบบ");
return Error("ไม่พบข้อมูลในระบบ");
var examName = data.First().ExamName;
@ -791,7 +791,7 @@ namespace BMA.EHR.Report.Service.Controllers
}
catch (Exception ex)
{
return Error(ex, "เกิดข้อผิดพลาดในการแสดงรายงาน");
return Error(ex);
}
}
@ -839,7 +839,7 @@ namespace BMA.EHR.Report.Service.Controllers
.ToListAsync();
if (data.Count == 0)
throw new Exception("ไม่พบข้อมูลในระบบ");
return Error("ไม่พบข้อมูลในระบบ");
var examName = data.First().ExamName;
@ -948,7 +948,7 @@ namespace BMA.EHR.Report.Service.Controllers
.FirstOrDefaultAsync(x => x.Id == id);
if (periodExam == null)
throw new Exception("ไม่พบข้อมูลการรับสมัครสอบ");
return Error("ไม่พบข้อมูลการรับสมัครสอบ");
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)
throw new Exception("ไม่พบข้อมูลในระบบ");
return Error("ไม่พบข้อมูลในระบบ");
var examName = data.First().ExamName;
@ -1059,7 +1059,7 @@ namespace BMA.EHR.Report.Service.Controllers
}
catch (Exception ex)
{
return Error(ex, "เกิดข้อผิดพลาดในการแสดงรายงาน");
return Error(ex);
}
}
@ -1087,7 +1087,7 @@ namespace BMA.EHR.Report.Service.Controllers
.FirstOrDefaultAsync(x => x.Id == id);
if (periodExam == null)
throw new Exception("ไม่พบข้อมูลการรับสมัครสอบ");
return Error("ไม่พบข้อมูลการรับสมัครสอบ");
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)
throw new Exception("ไม่พบข้อมูลในระบบ");
return Error("ไม่พบข้อมูลในระบบ");
var examName = data.First().ExamName;