public ActionResult EditerSelections(SelectionsRecord selection) { if (ModelState.IsValid) { SelectionTable table = new SelectionTable(Session["Database"]); table.Selection = selection; table.Update(); return RedirectToAction("AfficherSelections", "Selections", new { Id = ((BarsTable)Session["Bar"]).bar.Id }); } else { BieresTable bieres = new BieresTable(Session["Database"]); bieres.SelectByID(selection.IdBiere); selection.ListeBieres = new List<BieresRecord>(); selection.ListeBieres.Add(bieres.biere); return View(selection); } }