Пример #1
0
        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));
        }
Пример #2
0
        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));
        }