public ActionResult DeleteById(int cityId) { City city = _citiesRepository.GetById(cityId); if (city == null) { return(NotFound()); } _citiesRepository.DeleteById(cityId); return(NoContent()); }