public int GetTotalPopulationByCities(IEnumerable <string> cities) { int totalPopulation = 0; foreach (var city in cities) { totalPopulation += itemContainer.GetPopulationByCapitalName(city); } return(totalPopulation); }
public int GetTotalPopulationByCities(IEnumerable <string> cities) { int totalPopulation = 0; foreach (var city in cities) { totalPopulation += itemContainer.GetPopulationByCapitalName(city); } return(totalPopulation); }