private string CreateInvalidRestrictionLevelErrorMessage(SponsorshipRestrictionLevel restrictionLevel) { return($"RestrictionLevel: {restrictionLevel} is invalid. Allowed values: {String.Join(",", Enum.GetNames(typeof(SponsorshipRestrictionLevel)))}"); }
private bool ContainValidRestrictionLevel(SponsorshipRestrictionLevel restrictionLevel) { return(Enum.IsDefined(typeof(SponsorshipRestrictionLevel), restrictionLevel)); }