예제 #1
0
        //get:
        public ActionResult AddGroepslid()
        {
            List <Account> accounts = accountrepo.GetAllAccountsBehalveIngelogdeAccount(Convert.ToInt32(Session["UserId"]));

            var viewmodel = new ReserveringMakenViewModel()
            {
                accounts = accounts
            };

            return(View(viewmodel));
        }
예제 #2
0
        // 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));
        }