public ActionResult CancellationList(int?page)
        {
            HotelBookingCancelModel      _model = new HotelBookingCancelModel();
            HotelBookingCancelRepository _rep   = new HotelBookingCancelRepository();

            HotelGeneralRepository.SetRequestPageRow();
            _model.TabularList = _rep.GetPagedList(page);
            return(View(_model));
        }
        public ActionResult PendingCancellationList(ExportModel Expmodel, HotelBookingCancelModel model, FormCollection frm, int?page)
        {
            int SNO = 0;
            HotelBookingCancelModel      _model = new HotelBookingCancelModel();
            HotelBookingCancelRepository _rep   = new HotelBookingCancelRepository();

            HotelGeneralRepository.SetRequestPageRow();
            model.TabularList = _rep.GetPagedList(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.PendingList().Select(m => new
                    {
                        SNO         = m.SNo,
                        GuestName   = (m.BookingDetail.Guests[0].Title) + " " + (m.BookingDetail.Guests[0].FirstName) + " " + m.BookingDetail.Guests[0].MiddleName + " " + m.BookingDetail.Guests[0].LastName,
                        HotelName   = m.BookingDetail.HotelName,
                        RequestDate = m.CreatedOn.ToShortDateString(),
                        Status      = m.CancelStatus
                    });


                    App_Class.AppCollection.Export(Expmodel, exportData, "HotelBookingRecord");
                }
                catch (Exception ex)
                {
                    ATLTravelPortal.Utility.ErrorLogging.LogException(ex);
                }
            }
            return(null);
        }