public string AddTrainTicket(string from, string to, DateTime dateTime, decimal price, decimal studentPrice) { var ticket = new TrainTicket(from, to, dateTime, price, studentPrice); string result = this.AddTicket(ticket); return(result); }
public string DeleteTrainTicket(string from, string to, DateTime dateTime) { var ticket = new TrainTicket(from, to, dateTime); var uniqueKey = ticket.UniqueKey; string result = this.DeleteTicket(TicketType.Train, uniqueKey); return result; }
public string DeleteTrainTicket(string from, string to, DateTime dateTime) { var ticket = new TrainTicket(from, to, dateTime); var result = this.DeleteTicketByUniqueId(ticket.UniqueKey, ticket.Type); return(result); }
public string DeleteTrainTicket(string from, string to, DateTime dateTime) { var ticket = new TrainTicket(from, to, dateTime); var uniqueKey = ticket.UniqueKey; string result = this.DeleteTicket(TicketType.Train, uniqueKey); return(result); }
public string DeleteTrainTicket(string from, string to, string dateAndTime) { TrainTicket ticket = new TrainTicket(from, to, dateAndTime); string result = this.DeleteTicket(ticket); if (result.Contains("deleted")) { this.trainTicketsCount--; } return(result); }
public string AddTrainTicket(string from, string to, string dateAndTime, string price, string studentPrice) { TrainTicket ticket = new TrainTicket(from, to, dateAndTime, price, studentPrice); string result = this.AddTicket(ticket); if (result.Contains("created")) { this.trainTicketsCount++; } return(result); }
public string AddTrainTicket(string from, string to, DateTime dateAndTime, decimal price, decimal studentPrice) { TrainTicket ticket = new TrainTicket(from, to, dateAndTime, price, studentPrice); string result = this.AddTicket(ticket); if (result.Contains("created")) { this.trainTicketsCount++; } return result; }
public string AddTrainTicket(string from, string to, DateTime dateTime, decimal price, decimal studentPrice) { var ticket = new TrainTicket(from, to, dateTime, price, studentPrice); string result = this.AddTicket(ticket); return result; }
public string DeleteTrainTicket(string from, string to, DateTime dateAndTime) { TrainTicket ticket = new TrainTicket(from, to, dateAndTime); string result = this.DeleteTicket(ticket); if (result.Contains("deleted")) { this.trainTicketsCount--; } return result; }