public TeamModelWithCountries(TeamModel model, CountryCollectionModel countries) : this(countries) { Id = model.Id; Name = model.Name; ImageFlag = model.ImageFlag; CountryId = model.CountryId; TeamKey = model.TeamKey; }
public StadiumModelWithCountries(StadiumModel model, CountryCollectionModel countries) : this(countries) { Id = model.Id; Name = model.Name; Description = model.Description; Capacity = model.Capacity; ImageUrl = model.ImageUrl; CountryId = model.CountryId; }
public TeamModelWithCountries(CountryCollectionModel countries) { Countries = countries; }
public StadiumModelWithCountries(CountryCollectionModel countries) { Countries = countries; }
public async Task <ActionResult> Index() { CountryCollectionModel model = await CountryService.GetAllCountries(); return(View(model)); }
private async Task <TeamModelWithCountries> GetTeamWithCountries(TeamIdModel team, CountryCollectionModel countries) { if (team == null) { return(new TeamModelWithCountries(countries)); } else { var model = await this.Get(team); return(new TeamModelWithCountries(model, countries)); } }
private async Task <StadiumModelWithCountries> GetStadiumWithCountries(StadiumIdModel stadium, CountryCollectionModel countries) { if (stadium == null) { return(new StadiumModelWithCountries(countries)); } else { var model = await this.GetStadium(stadium); return(new StadiumModelWithCountries(model, countries)); } }