public ActionResult Index(ExportModel Expmodel, HotelBookingProcessModel model, FormCollection frm, int?page)
        {
            HotelBookingCancelModel       _model = new HotelBookingCancelModel();
            HotelBookingProcessRepository _rep   = new HotelBookingProcessRepository();

            HotelGeneralRepository.SetRequestPageRow();
            model.TabularList = _rep.GetDistributorHotelBookingProcessPagedList(page);
            GetExportTypeClicked(Expmodel, frm);
            if (Expmodel != null &&
                (Expmodel.ExportTypeExcel != null ||
                 Expmodel.ExportTypeWord != null ||
                 Expmodel.ExportTypeCSV != null ||
                 Expmodel.ExportTypePdf != null))
            {
                try
                {
                    if (Expmodel.ExportTypeExcel != null)
                    {
                        Expmodel.ExportTypeExcel = Expmodel.ExportTypeExcel;
                    }
                    else if (Expmodel.ExportTypeWord != null)
                    {
                        Expmodel.ExportTypeWord = Expmodel.ExportTypeWord;
                    }
                    else if (Expmodel.ExportTypePdf != null)
                    {
                        Expmodel.ExportTypePdf = Expmodel.ExportTypePdf;
                    }

                    var exportData = _rep.GetDistributorHotelBookingProcessPagedList(page).Select(m => new
                    {
                        SNo          = m.SNo,
                        GuestName    = m.GuestName,
                        Location     = m.CityName + "" + m.CountryName,
                        HotelDetails = m.HotelName,
                        Rooms        = m.NoOfRoom,
                        CheckIn      = m.CheckInDate.ToShortDateString(),
                        CheckOut     = m.CheckOutDate.ToShortDateString(),
                        RequestDate  = m.CreatedDate.ToShortDateString(),
                    });
                    App_Class.AppCollection.Export(Expmodel, exportData, "HotelBookingRecord");
                }
                catch (Exception ex)
                {
                    ATLTravelPortal.Utility.ErrorLogging.LogException(ex);
                }
            }
            return(null);
        }
        public ActionResult Index(int?page)
        {
            HotelBookingProcessModel      _model = new HotelBookingProcessModel();
            HotelBookingProcessRepository _rep   = new HotelBookingProcessRepository();

            HotelGeneralRepository.SetRequestPageRow();
            HotelMessageModel msg = new HotelMessageModel();

            _model.Message     = msg;
            _model.TabularList = _rep.GetDistributorHotelBookingProcessPagedList(page);
            return(View(_model));
        }