public ActionResult ClearDetail() { DetailTeam myTeam = DetailTeam.GetCart(Session["MyTeam"]); myTeam.ClearDetail(); return(Redirect("/Home/Detail")); }
public ActionResult Detail() { ViewBag.Message = "Подробнее о команде"; DetailTeam myTeam = DetailTeam.GetCart(Session["MyTeam"]); List <DetailTeamPos> lines = (List <DetailTeamPos>)myTeam.Lines; return(View(lines)); }
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")); }