Пример #1
0
        public async Task <IActionResult> DeleteImage(Guid id)
        {
            var imageFromRepo = await _imagesService.GetImageAsync(id);

            if (imageFromRepo == null)
            {
                return(NotFound());
            }

            await _imagesService.DeleteImageAsync(imageFromRepo);

            return(NoContent());
        }