Beispiel #1
0
        public IHttpActionResult GetCitiesForCountry(string country)
        {
            var cities = _ws.GetCitiesForCountry(country);

            if (cities == null || !cities.GetEnumerator().MoveNext()) // test for empty
            {
                return(NotFound());
            }
            return(Ok(cities));
        }