Esempio n. 1
0
        public ActionResult ViewProduct()
        {
            List <Product> productsList = _productsRepo.GetProductsList();

            GetCategoriesNameList(productsList[0]);
            return(View(productsList));
        }
Esempio n. 2
0
        public List <Product> FetchProductsList()
        {
            var productsRepo = new ProductsRepo();

            return(productsRepo.GetProductsList());
        }