public candidate Delete(int id) { candidate obj = candidate.GetById(id); if (obj != null) { obj.Delete(); } return(obj); }