Пример #1
0
        public async Task <ActionResult <int> > Delete(Guid id)
        {
            try
            {
                int result = await service.DeleteAsync(id);

                return(Ok(result));
            }
            catch (ItemNotFoundException)
            {
                return(NotFound());
            }
        }