Пример #1
0
        public async Task <ActionResult> DeleteGrunt(int id)
        {
            try
            {
                await _context.DeleteGrunt(id);

                return(new NoContentResult());
            }
            catch (ControllerNotFoundException e)
            {
                return(NotFound(e.Message));
            }
            catch (ControllerBadRequestException e)
            {
                return(BadRequest(e.Message));
            }
        }