Esempio n. 1
0
 public List <string> Get(string city)
 {
     return(_service.GetDistricts(city));
 }
Esempio n. 2
0
        public IHttpActionResult Get(string city)
        {
            var query = _service.GetDistricts(city);

            return(query.Count == 0 ? (IHttpActionResult)BadRequest("Empty District List!") : Ok(query));
        }