private static IEnumerable <FilterOptionModel> GetTopicOptions(IEnumerable <string> topics) { return(topics.Select( topic => new FilterOptionModel( topic, FilteringHelper.BuildFilterValueString( nameof(ApplicationWithSections.CourseTopic), nameof(ApplicationWithSections.CourseTopic), topic ), FilterStatus.Default ) )); }
private static IEnumerable <FilterOptionModel> GetCategoryOptions(IEnumerable <string> categories) { return(categories.Select( category => new FilterOptionModel( category, FilteringHelper.BuildFilterValueString( nameof(ApplicationWithSections.CategoryName), nameof(ApplicationWithSections.CategoryName), category ), FilterStatus.Default ) )); }