// GET: AddNewBookingUnit
 public ActionResult AddNewBookingUnit()
 {
     if (!Request.IsAuthenticated)
     {
         return(RedirectToAction("Login", "Account"));
     }
     else
     {
         var repo  = new BookingUnitRepository();
         var model = repo.CreateBookingUnitViewModel();
         return(View(model));
     }
 }
 // GET: MyBookingUnits
 public ActionResult MyBookingUnits()
 {
     if (!Request.IsAuthenticated)
     {
         return(RedirectToAction("Login", "Account"));
     }
     else
     {
         var  repo          = new BookingUnitRepository();
         long currentUserId = User.Identity.GetUserId <long>();
         var  model         = repo.GetMyBookingUnitsDisplayViewModel(currentUserId);
         return(View(model));
     }
 }