public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo) { SysEducationDA da = new SysEducationDA(); Int64 result = da.Insert(parameters); if (result > 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public Int32 Delete(NameValueCollection where, out ErrorEntity ErrInfo) { SysEducationDA da = new SysEducationDA(); Int32 result = da.Delete(where); if (result >= 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public List<SysEducation> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount) { SysEducationDA da = new SysEducationDA(); return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<SysEducation>(); }
public List<SysEducation> Select(NameValueCollection where, NameValueCollection orderby) { SysEducationDA da = new SysEducationDA(); return da.Select(where, orderby).DataTableToList<SysEducation>(); }