Ejemplo n.º 1
0
        public ActionResult DeleteById(int cityId)
        {
            City city = _citiesRepository.GetById(cityId);

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

            _citiesRepository.DeleteById(cityId);

            return(NoContent());
        }