public IActionResult Index() { var result = productoInventRepository.GetProductCollectionsWithImage(); result.ForEach(x => { x.ProductImage = azureStorageblob.DownloadFromBlob(x.FileName).Result == null ? azureStorageblob.DownloadFromBlob("NoImage.png").Result : azureStorageblob.DownloadFromBlob(x.FileName).Result; }); return(View(result)); }
public IActionResult Index() { var result = productoInventRepository.GetProductCollectionsWithImage(); return(View(result)); }