Exemplo n.º 1
0
 public async Task <IActionResult> CalculateQuote(QuoteRequest quoteRequest)
 {
     try {
         return(Ok(await _quotationService.CalculateQuote(quoteRequest)));
     }
     catch (ArgumentException ex)
     {
         return(BadRequest(ex.Message));
     }
     catch (Exception)
     {
         return(StatusCode(500));
     }
 }