public override IEnumerable <Location> Getlocation(string cityName) { var city = _repository.GetCity(cityName); if (!city.Any()) { city = _geoWebservice.GetLocation(cityName); foreach (var loc in city) { _repository.AddLocation(loc); } _repository.Save(); } return(city); }