Пример #1
0
        public async Task <ActionResult> DeleteAsync(string id)
        {
            try
            {
                await _service.DeleteAsync(id);
            }
            catch (ArgumentNullException)
            {
                return(BadRequest());
            }

            return(NoContent());
        }