public async Task <ActionResult> DeleteGruntTask(int id) { try { await _service.DeleteGruntTask(id); } catch (ControllerNotFoundException e) { return(NotFound(e.Message)); } catch (ControllerBadRequestException e) { return(BadRequest(e.Message)); } return(new NoContentResult()); }