public Galileo.PnrService.DisplayRetrievePNR GetPNRResult(Int64 AgentId, string RecordLocator)
        {
            //EntityModel entity = new EntityModel();
            var pnrs = entity.PNRs.Where(x => x.AgentId == AgentId && x.GDSRefrenceNumber == RecordLocator).FirstOrDefault();

            if (pnrs == null)
            {
                throw new Exception("Unauthorized Agent.");
            }

            Galileo.PnrService.BookingManager tktBokManager = new Galileo.PnrService.BookingManager();
            return(tktBokManager.RetrievePNR(RecordLocator));
        }
        public Galileo.PnrService.DisplayRetrievePNR CancelPnr(int AgentId, string Issuer, string RecordLocator)
        {
            // EntityModel entity = new EntityModel();
            var pnrs = entity.PNRs.Where(x => x.AgentId == AgentId && x.GDSRefrenceNumber == RecordLocator).FirstOrDefault();

            if (pnrs == null)
            {
                throw new Exception("Unauthorized Agent.");
            }

            Galileo.PnrService.BookingManager     tktBokManager  = new Galileo.PnrService.BookingManager();
            Galileo.PnrService.DisplayRetrievePNR cancelResponse = tktBokManager.CancelPnr(RecordLocator, Issuer, Galileo.PnrService.SegmentCancellation.All);
            //entity.Air_CancelTickets(pnrs.PNRId, AgentId);
            return(cancelResponse);
        }