Example #1
0
        public async Task <HttpResponseMessage> GetCities(string country)
        {
            ValidateApiVersionAndState();
            var citiesByCountryAsync = await _service.GetCitiesByCountry(country);

            var countries = ConvertToAnother(citiesByCountryAsync);

            return(Request.CreateResponse(HttpStatusCode.OK, countries));
        }