Exemplo n.º 1
0
 public async Task <IActionResult> GetAllAsync()
 {
     try
     {
         return(Ok(await _services.GetAll()));
     }
     catch (FXSException fxse)
     {
         return(StatusCode(Int32.Parse(fxse.Code), new ExceptionModel {
             Message = fxse.Message, Code = fxse.Code
         }));
     }
     catch (Exception ex)
     {
         return(NotFound(ex.Message));
     }
 }