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));
        }
예제 #2
0
        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));
        }