Exemple #1
0
 public Product(double pInitialAmount, string pSku, int pStatus, Guid pGatewayID, double pRecurringAmount, string pName, ProductType pType)
 {
     this.InitialAmount = pInitialAmount;
     this.Sku = pSku;
     this.Status = pStatus;
     this.GatewayID = pGatewayID;
     this.RecurringAmount = pRecurringAmount;
     this.Name = pName;
     this.Type = pType;
 }
Exemple #2
0
 public static List<Product> LoadByProductType(ProductType pType)
 {
     DbCommand cmd = SqlHelpers.CreateCommand(DataHelpers.ConnectionString, "dbo.ts_GET_PRODUCT_BY_PRODUCT_TYPE_ID");
     cmd.AddInputParam("PRODUCT_TYPE_ID", DbType.Guid, pType);
     return cmd.ExecuteSelectTable().ToProducts();
 }