Esempio n. 1
0
        public ActionResult DeletePeople(int Id)
        {
            var people = _repository.GetPeopleById(Id);

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

            _repository.DeletePeople(people);

            _repository.SaveChanges();

            return(NoContent());
        }