Example #1
0
        public IActionResult GetHtml()
        {
            int bookingUserId = context.GetUserIdFromAspNetUserId(userManager.GetUserId(HttpContext.User));

            var model = context.GetBookingsDetailVMForUserBookingsDetail(bookingUserId);

            return(PartialView("_Bookingbox", model));
        }
 public IActionResult Create(BookingsCreateVM booking)
 {
     booking.UserId = context.GetUserIdFromAspNetUserId(userManager.GetUserId(HttpContext.User));
     context.CreateBooking(booking);
     return(View(booking));
 }