Beispiel #1
0
        public ActionResult GetBlobSas()
        {
            string sas = _storageDataAccess.GetBlobSas("finn.jpg");

            ViewBag.SasLink = sas;

            return(PartialView("Link"));
        }
Beispiel #2
0
        public List <ProductEntity> GetAllProducts()
        {
            List <Product> products = _productDataAccess.GetAllProducts();

            return(products.Select(p => new ProductEntity(p)
            {
                ImageName = _storageDataAccess.GetBlobSas(p.BlobPath)
            }).ToList());
        }