public ActionResult Index() { HomeViewModel hvm = new HomeViewModel(); List <ProductViewModel> productViewModelList = new List <ProductViewModel>(); ProductsBL obj = new ProductsBL(); var lst = obj.GetProductList(); obj = null; hvm.NewArrivalList = lst; return(View(hvm)); }
public ActionResult Products(string Category, string Search) { ProductsBL obj = new ProductsBL(); var lst = obj.GetProductList(); obj = null; ProductLst model = new ProductLst(); model.ProductViewModelLst = lst; return(View("ProudctListing", model)); }