コード例 #1
0
        public IActionResult GetCity(int id)
        {
            var cityToReturn = _citiesRepository.GetByCityId(id);

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