public async Task <IActionResult> GetProductImageAsync(string upc) { var streamTask = catalogueSvc.GetProductImageByUPCAsync(upc); Stream stream = streamTask.Result; return(await Task.Run(() => File(stream, "image/jpeg"))); }