//get: public ActionResult AddGroepslid() { List <Account> accounts = accountrepo.GetAllAccountsBehalveIngelogdeAccount(Convert.ToInt32(Session["UserId"])); var viewmodel = new ReserveringMakenViewModel() { accounts = accounts }; return(View(viewmodel)); }
// GET: Reservering/Create public ActionResult Create(int id, ReserveringMakenViewModel rmvm) { Event events = eventrepo.GetByID(id); List <Plek> plekken = plekrepo.GetPlekByEventId(id); var viewmodel = new ReserveringMakenViewModel() { events = events, plekken = plekken }; return(View(viewmodel)); }