Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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>();
 }
Ejemplo n.º 4
0
 public List<SysMember> Select(NameValueCollection where, NameValueCollection orderby)
 {
     SysMemberDA da = new SysMemberDA();
     return da.Select(where, orderby).DataTableToList<SysMember>();
 }