public async Task <IActionResult> Index(string id) { byte[] imageBytes = await _imageProvider.GetImageAsync(id); return(new FileContentResult(imageBytes, "image/jpg")); }