Exemple #1
0
        public async Task <FileContentResult> GetImage(int imageId)
        {
            Image image = await DbAdaptor.GetImageAsync(imageId);

            if (image != null)
            {
                return(File(image.ImageData, image.ImageMimeType));
            }
            return(null);
        }