public async Task <IActionResult> GetImage(int id) { PhotoImage ph = await service.GetImageAsync(id); if (ph == null) { return(NotFound()); } return(File(ph.PhotoFile, ph.ImageMimeType)); }