示例#1
0
        public ActionResult Index()
        {
            var model = new ItemsModel();

            model.Items      = _itemBusiness.GetAll().OrderBy(i => i.Name);
            model.Promotions = _promotionBusiness.GetPromotionSelectList();

            return(View(model));
        }
示例#2
0
        public ActionResult Index()
        {
            var model = new HomeModel();

            Session["Cart"] = Session["Cart"] ?? new List <DTOCartItem>();

            model.Items = _itemBusiness.GetAll().OrderBy(i => i.Name);

            return(View(model));
        }