public ActionResult Index(OfflineBookInputModel input)
        {
            OfflineBookViewModel model = new OfflineBookViewModel();

            model.OfflineBookTicketList = bookProvider.ListOfflineBook(input.FromDate, input.ToDate);
            return(View(model));
        }
        public ActionResult BookOption(OfflineBookInputModel input)
        {
            OfflineBookViewModel model = new OfflineBookViewModel();

            model.input = input;
            //model.BookingBourceList = new SelectList(EnumHelper.GetEnumDescription(typeof(IndianLccBookingSourceEnum)), "Name", "Description");
            model.BookingBourceList = new SelectList(bookProvider.GetOfflineBookingServiceSource(), "OfflineBookingServiceProviderId", "ServiceProvider");

            if (model.input.BookingType == "International")
            {
                model.SelectListCollection.CityList = bookProvider.GetCitiesByCityTypeId(1);
                model.PNRDetails.Add(new OfflineBookPNRDetailsModel());
                model.PNRDetails[0] = new OfflineBookPNRDetailsModel();
                model.PNRDetails[0].SegmentDetail.Add(new OfflineBookSegmentModel());
                model.PNRDetails[0].PassengerDetail.Add(new OfflineBookPassengerModel());
            }

            if (model.input.BookingType == "Domestic")
            {
                model.SelectListCollection.CityList = bookProvider.GetCitiesByCityTypeId(3);
                if (model.input.JourneyType == "OneWay")
                {
                    model.PNRDetails.Add(new OfflineBookPNRDetailsModel());
                    model.PNRDetails[0] = new OfflineBookPNRDetailsModel();
                    model.PNRDetails[0].SegmentDetail.Add(new OfflineBookSegmentModel());
                    model.PNRDetails[0].PassengerDetail.Add(new OfflineBookPassengerModel());
                }
                else
                {
                    model.PNRDetails.Add(new OfflineBookPNRDetailsModel());
                    model.PNRDetails.Add(new OfflineBookPNRDetailsModel());

                    model.PNRDetails[0] = new OfflineBookPNRDetailsModel();
                    model.PNRDetails[0].SegmentDetail.Add(new OfflineBookSegmentModel());
                    model.PNRDetails[0].PassengerDetail.Add(new OfflineBookPassengerModel());

                    model.PNRDetails[1] = new OfflineBookPNRDetailsModel();
                    model.PNRDetails[1].SegmentDetail.Add(new OfflineBookSegmentModel());
                    model.PNRDetails[1].PassengerDetail.Add(new OfflineBookPassengerModel());
                }
            }
            return(View("VUC_Create", model));
        }
 public ActionResult Create(OfflineBookInputModel input)
 {
     return(View());
 }