public static bool IsGoalEditableForPurchaseType(this PurchaseType purchaseType) { if (purchaseType.Equals(PurchaseType.CPD)) { return(false); } else { return(true); } }
/// <summary> /// Returns true if OrderTypeInformation instances are equal /// </summary> /// <param name="other">Instance of OrderTypeInformation to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrderTypeInformation other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( PurchaseType == other.PurchaseType || PurchaseType != null && PurchaseType.Equals(other.PurchaseType) ) && ( UsageType == other.UsageType || UsageType != null && UsageType.Equals(other.UsageType) )); }