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

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

            return(productsRepo.GetProductsList());
        }