public object DeleteById(int id) { try { EFHelper <Jobs> eFHelper = new EFHelper <Jobs>(); Jobs jobs = eFHelper.GetListById(id); eFHelper.Del(jobs); return(new NewErrorModel() { data = jobs, error = new Error(0, "删除成功!", "") { }, }); } catch (Exception ex) { return(new NewErrorModel() { error = new Error(1, ex.Message, "") { }, }); } }