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

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