public ActionResult Checkout2End(Checkout2VM model)
        {
            if (BookingData == null || BookingData.OfferCriteria == null || BookingData.OfferCriteria.Busjetype == 0 || BookingData.CamperAanbiedingModel == null)
            {
                return(RedirectToAction("Index", "Home"));
            }

            if (!string.IsNullOrEmpty(model.SelectedPackages))
            {
                var packages = JsonConvert.DeserializeObject <List <SelectedPackage> >(model.SelectedPackages);

                BookingData.VestigingModel.Pakkets.ForEach(x =>
                {
                    var selectedPackage = packages.FirstOrDefault(c => c.Id == x.Id);
                    if (selectedPackage != null)
                    {
                        x.Number  = selectedPackage.Number;
                        x.IsCheck = true;
                    }
                    else
                    {
                        x.Number  = 1;
                        x.IsCheck = false;
                    }
                });
            }

            BookingData.Gegevens.LandBestemming = model.LandBestemming;
            BookingData.GeselecteerdePakketten  = BookingData.VestigingModel.Pakkets.Where(x => x.IsCheck).ToList();
            BookingData.Step3 = true;

            return(RedirectToAction("Checkout3"));
        }
        public ActionResult Checkout2(SearchCamperModel options)
        {
            if (BookingData == null || BookingData.OfferCriteria == null || BookingData.OfferCriteria.Busjetype == 0 || (BookingData.CamperAanbiedingModel == null && IsGet))
            {
                return(RedirectToAction("Index", "Home"));
            }

            ViewBag.BookingData  = BookingData;
            BookingData.Gegevens = BookingData.Gegevens ?? new Busjehuren.Core.Models.BookingData.MyGegevens();

            var model = new Checkout2VM();

            model.LandBestemming = BookingData.Gegevens.LandBestemming;

            if (IsPost)
            {
                if (options.vestigingId == 0 || options.aanbiedingId == 0 || options.vestigingTerugbrengId == 0)
                {
                    return(RedirectToAction("Index", "Home"));
                }

                BookingData.Step2 = true;
                _checkOutService.SetBookingData(options, BookingData);

                return(View(model));
            }

            return(View(model));
        }