public async Task <IActionResult> Search(string cityName) { if (string.IsNullOrWhiteSpace(cityName)) { return(BadRequest()); } var searchResults = await _cityManager.SearchByNameAsync(cityName); return(Ok(searchResults)); }
public async Task <IActionResult> Search(string cityName) { if (string.IsNullOrWhiteSpace(cityName)) { return(BadRequest()); } var searchResults = await _cityManager.SearchByNameAsync(cityName); return(Ok(searchResults)); }