/** * GET /Page/Main/{id=X} */ public IActionResult Main(int id = 1) { PageViewModel pageVM = new PageViewModel { Pages = PModel.GetMenu(), CurrentPage = PModel.GetDynamicPage(id), Dynamic = true }; return(View(pageVM)); }
/** * GET /Reservation/Schedule */ public IActionResult Schedule() { ReservationViewModel pageVM = new ReservationViewModel { Pages = PModel.GetMenu(), CurrentPage = new Page { InternalName = "Schedule", DisplayName = "Reserveren" }, Dynamic = false, NewUser = RModel.IsFirstTime(null), HasAReservation = RModel.HasReservation(), SelectedDay = timeManager.Today(), LastDay = timeManager.LastDay(), Error = 0 }; return(View(pageVM)); }
/** * GET /User/Login */ public IActionResult Login() { ValidViewModel pageVM = new ValidViewModel { Pages = PModel.GetMenu(), CurrentPage = new Page { InternalName = "Login", DisplayName = "Inloggen" }, Dynamic = false, Error = 0 }; return(View(pageVM)); }