Esempio n. 1
0
 public ViewResult Questions(int p = 1)
 {
     var posts = _postRepository.Posts(p-1, 10);
     int totalPosts = _postRepository.TotalPosts();
     var listviewModel = new ListViewModel(_postRepository, p);
     ViewBag.Title = "Latest Posts";
     return View("List", listviewModel);
 }
 public ViewResult Index(int p=1)
 {
     //return View();
     var posts = _postRepository.Posts(p - 1, 10);
     int totalPosts = _postRepository.TotalPosts();
     var listviewModel = new ListViewModel(_postRepository, p);
     ViewBag.Title = "Interview Questions and Answers";
     return View("List", listviewModel);
 }