public void GetFlightInfoFromRedis(int flightNum, ref string from, ref string to, ref string date, ref string cost, ref string leftTickets) { FlightUtil flUt = new FlightUtil(); from = flUt.GetFlightFromAirport(flightNum); to = flUt.GetFlightToAirport(flightNum); date = flUt.GetFlightDate(flightNum); cost = flUt.GetFlightCost(flightNum).ToString(); leftTickets = flUt.GetLeftTicketsAmount(flightNum).ToString(); }
private List <string> GetFlightFromRedis(int clnId, int flightNum) { List <string> redisData = new List <string>(); ClientUtil clnUt = new ClientUtil(); FlightUtil flUt = new FlightUtil(); redisData.Add(flUt.GetFlightFromAirport(flightNum)); redisData.Add(flUt.GetFlightToAirport(flightNum)); redisData.Add(flUt.GetFlightCost(flightNum).ToString()); redisData.Add(flUt.GetFlightOrderAmount(flightNum, clnId).ToString()); return(redisData); }