예제 #1
0
 public IActionResult Index(int page = 1)
 {
     return(View(new ArticlesViewModel
     {
         Articles = articlesRepository.FindPage(page),
         ArticlesCount = articlesRepository.FindAll().Count(),
         ActivePage = page
     }));
 }