filter data null

This commit is contained in:
Bright 2025-09-08 14:08:49 +07:00
parent fb217d59d0
commit 60054dc94f

View file

@ -113,6 +113,8 @@ namespace BMA.EHR.Report.Service.Controllers
AuthPosition = position
})
.FirstOrDefaultAsync();
if (data == null)
return Error("ไม่พบข้อมูลในระบบ");
var rptFile = Path.Combine(_hostingEnvironment.ContentRootPath, "Report", "Recruit", $"rptCertificate{type}.trdp");
ReportPackager reportPackager = new ReportPackager();