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