Ejemplo n.º 1
0
        public IEnumerable <UnIssuedInternationalTicketModel> GetList()
        {
            List <UnIssuedInternationalTicketModel> model = new List <UnIssuedInternationalTicketModel>();

            var data = ent.Air_GetUnIssuedInternationTickets(null);

            foreach (var item in data)
            {
                UnIssuedInternationalTicketModel temp = new UnIssuedInternationalTicketModel();
                temp.AgentId           = item.AgentId;
                temp.AgentName         = item.AgentName;
                temp.AirlineCode       = item.AirlineCode;
                temp.BookedBy          = item.BookedBy;
                temp.BookedDate        = item.BookedDate;
                temp.GDSRefrenceNumber = item.GDSRefrenceNumber;
                temp.PassengerName     = item.Passenger;
                temp.Sector            = item.Sector;
                temp.PNRid             = item.PNRId;
                temp.ServiceProviderId = 3;
                temp.FlightDate        = item.FlightDate;
                model.Add(temp);
            }

            return(model.AsEnumerable());
        }