private static string ProcessCreateBusCommand(string[] parameters)
        {
            string   from          = parameters[0];
            string   to            = parameters[1];
            string   travelCompany = parameters[2];
            DateTime dateTime      = ParseDateTime(parameters[3]);
            decimal  price         = decimal.Parse(parameters[4]);
            string   commandResult = ticketRepository.AddBusTicket(from, to, travelCompany, dateTime, price);

            return(commandResult);
        }
Exemple #2
0
        private static string ProcessCreateBussCommand(string[] parameters)
        {
            string   departureTown        = parameters[0];
            string   arrivalTown          = parameters[1];
            string   travelCompany        = parameters[2];
            DateTime departureDateAndTime = ParseDateTime(parameters[3]);
            decimal  price         = decimal.Parse(parameters[4]);
            string   commandResult =
                ticketRepository.AddBusTicket(departureTown, arrivalTown, travelCompany, departureDateAndTime, price);

            return(commandResult);
        }