public ActionResult ViewProduct() { List <Product> productsList = _productsRepo.GetProductsList(); GetCategoriesNameList(productsList[0]); return(View(productsList)); }
public List <Product> FetchProductsList() { var productsRepo = new ProductsRepo(); return(productsRepo.GetProductsList()); }