public List <string> Get(string city) { return(_service.GetDistricts(city)); }
public IHttpActionResult Get(string city) { var query = _service.GetDistricts(city); return(query.Count == 0 ? (IHttpActionResult)BadRequest("Empty District List!") : Ok(query)); }