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

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

            return(productsRepo.GetProductsList());
        }