public IActionResult GetCity(int id) { var cityToReturn = _citiesRepository.GetByCityId(id); if (cityToReturn == null) { return(NotFound()); } return(Ok(cityToReturn)); }