コード例 #1
0
        public ActionResult ManagePosts()
        {
            var posts = _postsBlogRepository.Posts(1, 10);

            return(View(posts));
        }
コード例 #2
0
 public ListViewModel(IPostsBlogRepository _postsBlogRepository, int p)
 {
     Posts      = _postsBlogRepository.Posts(p - 1, 10);
     TotalPosts = _postsBlogRepository.TotalPosts();
 }