public static string ConvertFromEnum(SubscriptionStatusValue subscriptionStatus) { switch (subscriptionStatus) { case SubscriptionStatusValue.Pending: return(Pending); case SubscriptionStatusValue.Active: return(Active); case SubscriptionStatusValue.Inactive: return(Inactive); default: throw new ArgumentOutOfRangeException(nameof(subscriptionStatus)); } }
public SubscriptionStatus(SubscriptionStatusValue status) { Status = status; }