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

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