示例#1
0
        public IActionResult Choosepark(ChooseParkViewModel model)
        {
            Booking booking = context.Bookings.Find(model.Id);

            booking.Motor_park    = model.Motor_park;
            booking.Fare          = model.Fare;
            booking.Vehicle       = model.Vehicle;
            booking.Depature_Time = model.Depature_Time;
            booking.Address       = model.Address;
            context.SaveChanges();

            return(RedirectToAction("Bookingdetails/" + booking.Id.ToString()));
        }
示例#2
0
        public IActionResult Choosepark(Guid id)
        {
            ChooseParkViewModel chooseParkViewModel = new ChooseParkViewModel();

            return(View(chooseParkViewModel));
        }