// GET: Haber #endregion #region Haber İçerik public ActionResult Icerik(int id, int sayfa = 1) { ViewBag.Kategoriler = _kategoriRepository.GetAll(); //ViewBag.Yorumlar = _yorumRepository.GetMany(x => x.HaberID == id); var YorumListe = _yorumRepository.GetMany(x => x.HaberID == id); ViewBag.YorumSayisi = _yorumRepository.HaberYorumSayisi(id).ToString(); var haber = _haberRepository.GetByID(id); ViewBag.Haber = haber; OkunmaSayisiArttir(id); //return View(haber); return(View(YorumListe.OrderBy(x => x.EklenmeTarihi).ToPagedList(sayfa, 5))); }