public ActionResult Purchase()//prob current user. { int userID = OnlineUsers.CurrentUser.Id; TempData["Total"] = DB.CalculerMontantPanier(userID); User user = DB.Users.Find(userID); ViewBag.Solde = user.Montant; List <PanierView> panier = DB.FetchPanier(OnlineUsers.CurrentUser.Id); List <int> quant = new List <int>(); foreach (PanierView p in panier) { quant.Add(p.QuantiteAchat); } ViewBag.Quantites = quant; return(View(GetPanierItems())); }