public async Task <FileContentResult> GetImage(int imageId) { Image image = await DbAdaptor.GetImageAsync(imageId); if (image != null) { return(File(image.ImageData, image.ImageMimeType)); } return(null); }