예제 #1
0
 // 表示するページを指定で初期化する
 public ManageViewModel(UserManager <IdentityUser> userManager, int nowPage)
 {
     AllUsers = getAllUsers(userManager);
     Users    = getPageUsers(AllUsers, nowPage);
     Page     = new PageViewModel(PageCount, AllUsers.Count, nowPage);
 }
예제 #2
0
 public MenuViewModel(List <DiaryRow> diaryList, int totalNumber, int nowPage, string notification)
 {
     DiaryList    = diaryList;
     Page         = new PageViewModel(PageCount, totalNumber, nowPage);
     Notification = notification;
 }