public DetailsModel(IFlightsRepository r, IApiCountriesRepository c, IApiCitiesRepository p, IStopOversRepository s, IAirlineCompaniesRepository ac) : base(r, c, p, s, ac) { }
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()); }
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); }
internal TestClass(IFlightsRepository r, IApiCountriesRepository c, IApiCitiesRepository p, IStopOversRepository s, IAirlineCompaniesRepository ac) : base(r, c, p, s, ac) { }
public IndexModel(IFlightsRepository r, IApiCountriesRepository c, IApiCitiesRepository p, IStopOversRepository s, IAirlineCompaniesRepository ac) : base(r, c, p, s, ac) { citiesRepository = p; countriesRepository = c; }