コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }