Ejemplo n.º 1
0
 public IActionResult ManageBookings(ManageBookingsViewModel model)
 {
     if (isEmployee())
     {
         model.initModel(_context, model.SelectedHotel);
         return View(model);
     }
     else
     {
         return RedirectToAction("AccessDenied", "Account");
     }
 }
Ejemplo n.º 2
0
 public IActionResult ManageBookings()
 {
     if (isEmployee())
     {
         ManageBookingsViewModel model = new ManageBookingsViewModel(_context);
         return View(model);
     }
     else
     {
         return RedirectToAction("AccessDenied", "Account");
     }
 }