Ejemplo n.º 1
0
        /**
         * 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));
        }
Ejemplo n.º 2
0
        /**
         * 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));
        }
Ejemplo n.º 3
0
        /**
         * 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));
        }