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