public override IEnumerable <City> GetCity(string cityName) { var city = _repository.FindCity(cityName); if (city.Count() == 0) { city = _geonameWebservice.GetCity(cityName); _repository.AddCity(city); _repository.Save(); } return(city); }
public Task <List <Location> > SearchLocation(string location) { return(_weatherRepository.FindCity(location).ToListAsync()); }