add try catch
This commit is contained in:
parent
eeb82dcbe1
commit
e351adb5fa
1 changed files with 132 additions and 125 deletions
|
|
@ -2096,6 +2096,8 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
|
||||
[HttpPut("preview/receice/{insigniaNoteId:length(36)}"), DisableRequestSizeLimit]
|
||||
public async Task<ActionResult<ResponseObject>> PreviewReceiceProfile([FromForm] ImportFileRequest req, Guid insigniaNoteId)
|
||||
{
|
||||
try
|
||||
{
|
||||
var getPermission = await _permission.GetPermissionAPIAsync("CREATE", "SYS_INSIGNIA_RECORD");
|
||||
var jsonData = JsonConvert.DeserializeObject<JObject>(getPermission);
|
||||
|
|
@ -2228,6 +2230,11 @@ namespace BMA.EHR.Insignia.Service.Controllers
|
|||
}
|
||||
return Success(_insigniaNoteProfiles);
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
return Error(ex);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// preview บันทึกผลใบกำกับเครื่องราชฯ
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue