public IActionResult Get([FromBody] ReceiptRequestModel receipt) { bool response; try { response = _imisModules.GetPremiumModule().GetPremiumLogic().Get(receipt); } catch (ValidationException e) { return(BadRequest(new { error = new { message = e.Message, value = e.Value } })); } return(Ok(response)); }
public IActionResult Get([FromBody] ReceiptRequestModel receipt) { bool response; try { response = _imisModules.GetPremiumModule().GetPremiumLogic().Get(receipt); } catch (ValidationException e) { throw new BusinessException(e.Message); } return(Ok(response)); }