public IActionResult OnGet(int imageId) { Image image = imageData.GetById(imageId); return(File(image.ImageData, "image/jpeg")); }