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