Exemplo n.º 1
0
        //public ActionResult Indexx(int? offset)
        //{
        //    ViewData["PostyTagi"] = _postTag.pobierzPorcje(Int16.Parse(_ustawienia.getSettings("ilosc_pozycji_na_strone")), (offset == null || offset == 0) ? 0 : (int)offset - 1);
        //    ViewData["Komentarze"] = _komentarze.PobierzWszystkie();
        //    //Lista(aktywna strona, liczba postow, elementów w porcji)
        //    ViewData["Nawigacja"] = new List<int> { (offset == null || offset == 0) ? 1 : (int)offset, _postTag.ileWszystkichAktywnych(), Int16.Parse(_ustawienia.getSettings("ilosc_pozycji_na_strone")) };
        //    return View();
        //}

        //GET: /Home/Index/6
        //public ActionResult Indexx(int? offset)
        //{
        //    ViewData["PostyTagi"] = _postTag.pobierzPorcje(Int16.Parse(_ustawienia.getSettings("ilosc_pozycji_na_strone")),(offset==null)?0:(int)offset);
        //    ViewData["Komentarze"] = _komentarze.PobierzWszystkie();
        //    return View();
        //}
        #endregion

        #endregion

        #region home/archive
        public ActionResult ArchiveByDay(DateTime entryDate)
        {
            ViewData["PostyTagi"]  = _postTag.pobierzPorcjePoDacie(entryDate);
            ViewData["Komentarze"] = _komentarze.PobierzWszystkie();
            ////Lista(aktywna strona, liczba postow, elementów w porcji)
            ViewData["Nawigacja"] = new List <int> {
                1, 1, 1
            };                                                 //dzięki temu nie będzie nawigacji

            return(View("Index"));
        }