示例#1
0
        public ActionResult ClearDetail()
        {
            DetailTeam myTeam = DetailTeam.GetCart(Session["MyTeam"]);

            myTeam.ClearDetail();
            return(Redirect("/Home/Detail"));
        }
示例#2
0
        public ActionResult Detail()
        {
            ViewBag.Message = "Подробнее о команде";
            DetailTeam           myTeam = DetailTeam.GetCart(Session["MyTeam"]);
            List <DetailTeamPos> lines  = (List <DetailTeamPos>)myTeam.Lines;

            return(View(lines));
        }
示例#3
0
        public ActionResult AddToDetail(int?ID = 1)
        {
            F1Context  db     = new F1Context();
            Team       t      = db.Teams.Find(ID);
            DetailTeam myTeam = DetailTeam.GetCart(Session["MyTeam"]);

            myTeam.AddItem(t.ID, t);
            Session["MyTeam"] = myTeam;
            //return Redirect("/Home/Catalog/?restoreFilter=true");
            return(Redirect("/Home/Detail"));
        }