Exemplo n.º 1
0
 public async Task <ActionResult> DeleteGruntCommand(int id)
 {
     try
     {
         await _context.DeleteGruntCommand(id);
     }
     catch (ControllerNotFoundException e)
     {
         return(NotFound(e.Message));
     }
     catch (ControllerBadRequestException e)
     {
         return(BadRequest(e.Message));
     }
     return(new NoContentResult());
 }