示例#1
0
        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));
        }
示例#2
0
        public IActionResult Index()
        {
            var result = productoInventRepository.GetProductCollectionsWithImage();

            return(View(result));
        }