Exemplo n.º 1
0
        public ActionResult <string> GetCityByPostalCode(string postalCode)
        {
            Response.Headers.Add("Access-Control-Allow-Origin", "*");
            var city = _repository.GetCityByPostalCode(postalCode);

            if (city == null)
            {
                return(NotFound());
            }
            return(Ok(city));
        }