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)); }
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)); }