Blog.Controllers.HomeController.Archive C# (CSharp) Method

Archive() public method

public Archive ( int year, int month ) : System.Web.Mvc.ActionResult
year int
month int
return System.Web.Mvc.ActionResult
        public ActionResult Archive(int year, int month)
        {
            ViewData["PostyTagi"] = _postTag.pobierzArchiwum(year, month);
            ViewData["Komentarze"] = _komentarze.PobierzWszystkie();
            ViewData["Nawigacja"] = new List<int> { 1, 1, 1 }; //dzięki temu nie będzie nawigacji
            return View("Index");
        }