Example #1
0
 public int GetUsersPageCount(int usersPerPage)
 {
     return(Pagination.CountPages(_context.Users.Count(), usersPerPage));
 }
Example #2
0
 public int GetLastMessagesPageCount(int thisUserId, int messagesPerPage)
 {
     return(Pagination.CountPages(GetLastMessages(thisUserId).Count(), messagesPerPage));
 }
Example #3
0
 public int GetAllFriendshipRequestsPageCount(int receiverId, int usersPerPage)
 {
     return(Pagination.CountPages(GetAllFriendshipRequests(receiverId).Count(), usersPerPage));
 }