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