public async Task <IActionResult> AllConferenceHallReservations()
        {
            var reservations = await this.conferenceHallService
                               .GetAllReservationsAsyncForAdmin <ConfHallAllViewModel>();

            var reservationView = new ConfHallViewModel()
            {
                AllReservations = reservations,
            };

            return(this.View("~/Views/ConferenceHall/Reservations.cshtml", reservationView));
        }
示例#2
0
        public async Task <IActionResult> Reservations()
        {
            var userId = await this.usersService.GetUserIdAsync(this.User);

            var reservations = await this.conferenceHallService
                               .GetAllReservationsAsync <ConfHallAllViewModel>(userId);

            var reservationView = new ConfHallViewModel()
            {
                AllReservations = reservations,
            };

            return(this.View(reservationView));
        }