We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4560cf6 commit e740459Copy full SHA for e740459
Gordon360/Services/NewsService.cs
@@ -68,6 +68,12 @@ orderby snc.SortOrder
68
return news;
69
}
70
71
+ /// <summary>
72
+ /// Filters out categories that are not relevant for the student news feed.
73
+ /// Student News categories are set by fetching their respective ids from the databasase
74
+ /// in this instance, "2" and "3" are excluded. which relate to "Lost Items" and "Found Items"
75
+ /// NOTE: the categories are hardcoded here, but could be made more dynamic in the future
76
+ /// </summary>
77
private static readonly int[] ExcludedCategoryIds = [2, 3];
78
public IEnumerable<StudentNewsCategoryViewModel> GetNewsCategories()
79
{
0 commit comments