Exemplo n.º 1
0
        public ViewResult Posts(int p = 1)
        {
            var viewModel = new ListViewModel(_blogRepository, p);

            ViewBag.Title = "Latest Posts";
            return View("List", viewModel);
        }
Exemplo n.º 2
0
        public ViewResult Contact()
        {
            var viewModel = new ListViewModel(_blogRepository, p);

            ViewBag.Title = "Contact";
            return View("Contact", viewModel);
        }