예제 #1
0
 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
                    )
                ));
 }
예제 #2
0
 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
                    )
                ));
 }