Пример #1
0
        public string AddBusTicket(string from, string to, string travelCompany, DateTime dateTime, decimal price)
        {
            var    ticket = new BusTicket(from, to, travelCompany, dateTime, price);
            string result = this.AddTicket(ticket);

            return(result);
        }
Пример #2
0
 public string DeleteBusTicket(string from, string to, string travelCompany, DateTime dateTime)
 {
     var ticket = new BusTicket(from, to, travelCompany, dateTime);
     var uniqueKey = ticket.UniqueKey;
     string result = this.DeleteTicket(TicketType.Bus, uniqueKey);
     return result;
 }
        public string DeleteBusTicket(string from, string to, string travelCompany, DateTime dateTime)
        {
            var ticket = new BusTicket(from, to, travelCompany, dateTime);
            var result = this.DeleteTicketByUniqueId(ticket.UniqueKey, ticket.Type);

            return(result);
        }
Пример #4
0
        public string DeleteBusTicket(string from, string to, string travelCompany, DateTime dateTime)
        {
            var    ticket    = new BusTicket(from, to, travelCompany, dateTime);
            var    uniqueKey = ticket.UniqueKey;
            string result    = this.DeleteTicket(TicketType.Bus, uniqueKey);

            return(result);
        }
Пример #5
0
        public string DeleteBusTicket(string from, string to, string travelCompany, string dateAndTime)
        {
            BusTicket ticket = new BusTicket(from, to, travelCompany, dateAndTime);
            string    result = this.DeleteTicket(ticket);

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

            return(result);
        }
Пример #6
0
        public string AddBusTicket(string from, string to, string travelCompany, string dateAndTime, string price)
        {
            BusTicket ticket = new BusTicket(from, to, travelCompany, dateAndTime, price);
            string    result = this.AddTicket(ticket);

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

            return(result);
        }
        public string AddBusTicket(string from, string to, string company, DateTime dateAndTime, decimal price)
        {
            BusTicket ticket = new BusTicket(from, to, company, dateAndTime, price);

            string result = this.AddTicket(ticket);

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

            return result;
        }
Пример #8
0
 public string AddBusTicket(string from, string to, string travelCompany, DateTime dateTime, decimal price)
 {
     var ticket = new BusTicket(from, to, travelCompany, dateTime, price);
     string result = this.AddTicket(ticket);
     return result;
 }
        public string DeleteBusTicket(string from, string to, string company, DateTime dateAndTime)
        {
            BusTicket ticket = new BusTicket(from, to, company, dateAndTime);
            string result = this.DeleteTicket(ticket);

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

            return result;
        }