public IActionResult CreateNewBooking(Booking booking)
 {
     ViewBag.Name       = CurUser.Name;
     booking.CustomerId = CurUser.UserId;
     booking.State      = "Pending";
     BookingDAO.CreateBooking(booking);
     return(View("Index", BookingDAO.GetBookings(CurUser.UserId)));
 }
Exemplo n.º 2
0
 public static bool CreateBooking(Booking b)
 {
     return(BookingDAO.CreateBooking(b));
 }