Exemple #1
0
 public DetailsModel(IFlightsRepository r, IApiCountriesRepository c, IApiCitiesRepository p, IStopOversRepository s, IAirlineCompaniesRepository ac) : base(r, c, p, s, ac)
 {
 }
Exemple #2
0
        protected static IEnumerable <SelectListItem> CreateSelectList(IApiCitiesRepository p, string name)
        {
            var items = p.GetAll(name).GetAwaiter().GetResult();

            return(items.Select(t => new SelectListItem(t.PlaceName, t.CityId)).ToList());
        }
Exemple #3
0
 protected internal FlightsPage(IFlightsRepository r, IApiCountriesRepository c, IApiCitiesRepository p, IStopOversRepository s, IAirlineCompaniesRepository ac) : base(r)
 {
     PageTitle = "Flights";
     Countries = CreateSelectList(c);
     Cities    = new List <SelectListItem>();
     StopOvers = CreateSelectListStopOver(s);
     Companies = CreateSelectListCompanies(ac);
 }
Exemple #4
0
 internal TestClass(IFlightsRepository r, IApiCountriesRepository c, IApiCitiesRepository p, IStopOversRepository s, IAirlineCompaniesRepository ac) : base(r, c, p, s, ac)
 {
 }
Exemple #5
0
 public IndexModel(IFlightsRepository r, IApiCountriesRepository c, IApiCitiesRepository p, IStopOversRepository s, IAirlineCompaniesRepository ac) : base(r, c, p, s, ac)
 {
     citiesRepository    = p;
     countriesRepository = c;
 }