Beispiel #1
0
        public string AddAirTicket(string flightNumber, string from, string to, string airline, DateTime dateTime, decimal price)
        {
            var    ticket = new AirTicket(flightNumber, from, to, airline, dateTime, price);
            string result = this.AddTicket(ticket);

            return(result);
        }
 public string DeleteAirTicket(string flightNumber)
 {
     var ticket = new AirTicket(flightNumber);
     var uniqueKey = ticket.UniqueKey;
     string result = this.DeleteTicket(TicketType.Flight, uniqueKey);
     return result;
 }
        public string DeleteAirTicket(string flightNumber)
        {
            var ticket = new AirTicket(flightNumber);
            var result = this.DeleteTicketByUniqueId(ticket.UniqueKey, ticket.Type);

            return(result);
        }
Beispiel #4
0
        public string DeleteAirTicket(string flightNumber)
        {
            var    ticket    = new AirTicket(flightNumber);
            var    uniqueKey = ticket.UniqueKey;
            string result    = this.DeleteTicket(TicketType.Flight, uniqueKey);

            return(result);
        }
Beispiel #5
0
        public string DeleteAirTicket(string flightTicket)
        {
            AirTicket ticket = new AirTicket(flightTicket);
            string    result = this.DeleteTicket(ticket);

            if (result.Contains("deleted"))
            {
                this.airTicketsCount--;
            }

            return(result);
        }
Beispiel #6
0
        public string AddAirTicket(string flightNumber, string from, string to, string airline, string dateAndTime, string price)
        {
            AirTicket ticket = new AirTicket(flightNumber, from, to, airline, dateAndTime, price);
            string    result = this.AddTicket(ticket);

            if (result.Contains("created"))
            {
                this.airTicketsCount++;
            }

            return(result);
        }
        public string AddAirTicket(
            string flightNumber,
            string from,
            string to,
            string airline,
            DateTime dateAndTime,
            decimal price)
        {
            AirTicket ticket = new AirTicket(flightNumber, from, to, airline, dateAndTime, price);

            string result = this.AddTicket(ticket);
            if (result.Contains("created"))
            {
                this.airTicketsCount++;
            }

            return result;
        }
 public string AddAirTicket(string flightNumber, string from, string to, string airline, DateTime dateTime, decimal price)
 {
     var ticket = new AirTicket(flightNumber, from, to, airline, dateTime, price);
     string result = this.AddTicket(ticket);
     return result;
 }
        public string DeleteAirTicket(string flightNumber)
        {
            AirTicket ticket = new AirTicket(flightNumber);

            string result = this.DeleteTicket(ticket);
            if (result.Contains("deleted"))
            {
                this.airTicketsCount--;
            }

            return result;
        }