示例#1
0
        public async Task <IActionResult> GetImageFile(Guid id)
        {
            if (id == Guid.Empty)
            {
                return(BadRequest());
            }

            try
            {
                var image = await _imagesService.FetchFullImageById(id);

                return(File(image, "image/jpeg"));
            }
            catch (ArgumentException)
            {
                return(NotFound());
            }
        }