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