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))); }
public IActionResult DeleteBooking(Booking booking) { BookingDAO.DeleteBooking(booking.BookingId); return(View("Index", BookingDAO.GetBookings(CurUser.UserId))); }