// // GET: /Reservation/Create public ActionResult Create(int SortieID) { //ViewBag.IDSortie = SortieID; #region SelectList var SysLst = new List <string>(); var SysQry = from d in hotelRepository.FindMany(x => x.Region.Zone.CentreID == SessionData.CurrentUser.CentreID) select d.Nom; SysLst.AddRange(SysQry.Distinct()); ViewBag.Hotel = new SelectList(SysLst); var SysLst1 = new List <string>(); var SysQry1 = from b in langueRepository.GetAll() select b.NomLangue; SysLst1.AddRange(SysQry1.Distinct()); ViewBag.Lang = new SelectList(SysLst1); var SysLst2 = new List <string>(); SysLst2.Add("Canceled"); SysLst2.Add("No Modification No Cancellation"); SysLst2.Add("Modified"); ViewBag.Etatres = new SelectList(SysLst2); var SysLst3 = new List <int>(); SysLst3.Add(SortieID); ViewBag.Sortie = new SelectList(SysLst3); #endregion return(View()); }