public ActionResult DeleteMember(int id) { var x = _repo.GetStaffbyId(id); if (x == null) { return(NotFound()); } _repo.DeleteMember(x); _repo.SaveChanges(); return(NoContent()); }