Ejemplo n.º 1
0
 public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo)
 {
     PortalProductListDA da = new PortalProductListDA();
     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 Int32 Delete(NameValueCollection where, out ErrorEntity ErrInfo)
 {
     PortalProductListDA da = new PortalProductListDA();
     Int32 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<PortalProductList> Select(NameValueCollection where, NameValueCollection orderby, Int32 PageIndex, Int32 PageSize, out Int32 totalCount)
 {
     PortalProductListDA da = new PortalProductListDA();
     return da.Select(where, orderby, PageIndex, PageSize, out totalCount).DataTableToList<PortalProductList>();
 }
Ejemplo n.º 4
0
 public List<PortalProductList> Select(NameValueCollection where, NameValueCollection orderby)
 {
     PortalProductListDA da = new PortalProductListDA();
     return da.Select(where, orderby).DataTableToList<PortalProductList>();
 }