public ActionResult ShopByCategory(int id, int?pageNo) { HomeViewModel model = new HomeViewModel(); List <Product> products = Handler.GetProductsByCategory(id); model.Products = products; return(View(model)); }
public ActionResult ShopByCategory(int id, int?pageNo) { HomeViewModel model = new HomeViewModel(); List <Product> products = Handler.GetProductsByCategory(id); model.Products = products; return(View(model)); }