/// <summary> /// Initialize data to show /// </summary> /// <param name="date">Date of flight</param> /// <param name="from">Location from</param> /// <param name="to">Location to</param> /// <param name="isReversed">Is flight return</param> /// <returns>Asynchronous result</returns> private async Task InitializeDataAsync(string date, List <string> from, List <string> to, bool isReversed = false) { var flightsService = new FlightsService(_httpService, _jsonConverter); var flyInfoOneWay = await flightsService.ConfigurationOfFlightsAsync(date, from, to); AddToFlightsList(flyInfoOneWay, isReversed); }