/// <summary> /// Persists a new instance of PaymentMethod. Returns true on success. /// </summary> /// <returns></returns> private bool Create() { int newID = 0; this.guid = Guid.NewGuid(); newID = DBPaymentMethod.Create( this.siteID, this.paymentProvider, this.name, this.description, this.displayOrder, this.isActive, this.additionalFee, this.usePercentage, this.freeOnOrdersOverXEnabled, this.freeOnOrdersOverXValue, this.useSandbox, this.businessEmail, this.securePass, this.hashcode, this.merchantId, this.merchantSiteCode, this.accessCode, this.guid, this.isDeleted); this.paymentMethodID = newID; return(newID > 0); }