Esempio n. 1
0
 public async Task <IActionResult> DeleteAsync(int id)
 {
     try
     {
         return(Ok(await _services.DeleteOne(id)));
     }
     catch (FXSException fxse)
     {
         return(StatusCode(Int32.Parse(fxse.Code), new ExceptionModel {
             Message = fxse.Message, Code = fxse.Code
         }));
     }
     catch (Exception ex)
     {
         return(NotFound(ex.Message));
     }
 }