diff --git a/Project-Unite/Controllers/ForumController.cs b/Project-Unite/Controllers/ForumController.cs index de2174c..4abac8c 100644 --- a/Project-Unite/Controllers/ForumController.cs +++ b/Project-Unite/Controllers/ForumController.cs @@ -351,7 +351,7 @@ public static T[] GetItemsOnPage(this T[] collection, int page, int pageSize) { List obj = new List(); - for(int i = pageSize * page; i < pageSize + (pageSize * page) && i < collection.Count(); i++) + for(int i = pageSize * page; i < pageSize + (pageSize * page) + 1 && i < collection.Count(); i++) { obj.Add(collection[i]); }