public ActionResult ProductDisplay() { ContentModel contentModel = new ContentModel(); contentModel.lhsBrandFilter = this.menuRepository.LHSBrandFilter; contentModel.lhsAllMenu = new LHSAllMenu() { lhsMenu = this.menuRepository.LHSMenu, lhsSubMenuBrand = this.menuRepository.LHSSubMenuBrand }; return View("ProductDisplay", contentModel); }
public ViewResult Index() { ContentModel contentModel = new ContentModel(); contentModel.topMenu = this.menuRepository.TopMenu; contentModel.lhsAllMenu = new LHSAllMenu() { lhsMenu = this.menuRepository.LHSMenu, lhsSubMenuBrand = this.menuRepository.LHSSubMenuBrand }; contentModel.Products = (new ProductRepository()).GetAllProduct(); return View(contentModel); }