コード例 #1
0
 public ListViewModel(BlogContext _blogContext, int page)
 {
     currentPage = page;
     Posts = _blogContext.AllPostsByPage(page - 1, split);
     //TotalPosts = _blogContext.TotalPosts();
     //totalPages = (int)Math.Ceiling((double)TotalPosts / (double)split);
 }