public static string GetTenantDisplayNameForMatchmakerSubScoreTypeEnum(MatchmakerSubScoreTypeEnum enumType) { switch (enumType) { case MatchmakerSubScoreTypeEnum.Classification: return(MultiTenantHelpers.GetTenantNameForClassificationForMatchmaker(true)); case MatchmakerSubScoreTypeEnum.TaxonomySystem: return(MultiTenantHelpers.GetTenantFieldDefinitionEnumForMatchmakerTaxonomy().ToType().GetFieldDefinitionLabelPluralized()); default: return(MatchmakerSubScoreType.ToType(enumType).MatchmakerSubScoreTypeDisplayName); } }
public static MatchmakerSubScoreType ToType(MatchmakerSubScoreTypeEnum enumValue) { switch (enumValue) { case MatchmakerSubScoreTypeEnum.AreaOfInterest: return(AreaOfInterest); case MatchmakerSubScoreTypeEnum.Classification: return(Classification); case MatchmakerSubScoreTypeEnum.MatchmakerKeyword: return(MatchmakerKeyword); case MatchmakerSubScoreTypeEnum.PerformanceMeasure: return(PerformanceMeasure); case MatchmakerSubScoreTypeEnum.TaxonomySystem: return(TaxonomySystem); default: throw new ArgumentException(string.Format("Unable to map Enum: {0}", enumValue)); } }