Esempio n. 1
0
        public ActionResult DeleteMember(int id)
        {
            var x = _repo.GetStaffbyId(id);

            if (x == null)
            {
                return(NotFound());
            }
            _repo.DeleteMember(x);
            _repo.SaveChanges();

            return(NoContent());
        }