public ActionResult Index() { var model = new ItemsModel(); model.Items = _itemBusiness.GetAll().OrderBy(i => i.Name); model.Promotions = _promotionBusiness.GetPromotionSelectList(); return(View(model)); }
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)); }