예제 #1
0
        public IActionResult ReservationList()
        {
            SetViewData();
            if (!UserAllowed())
            {
                ViewData["Warning"] = "Neautorizovaný přístup.";
                return(View("Warning"));
            }

            ViewData["reservationDic"] = ReservationLogic.GetReservationByDayInPeriod(DateTime.Today, DateTime.Today.AddMonths(1));

            return(View());
        }