public ActionResult Yorum(int id) { YorumRep rep = new YorumRep(); var liste = rep.GetAll().Where(x => x.BlogYorum.BlogID == id); return(View(liste)); }
public ActionResult Yorumlarim(string uyeid) { uyeid = User.Identity.GetUserId(); var yorumlar = yorumrep.GetAll(); var uyeninyorumlari = yorumlar.Where(x => x.YorumlayanUyeId == uyeid).ToList(); return(View(uyeninyorumlari)); }
// GET: Admin/Admin public ActionResult Index() { TurlerRep rep = new TurlerRep(); YorumRep yRep = new YorumRep(); BlogRep bRep = new BlogRep(); ViewBag.YorumSayisi = yRep.GetAll().Count.ToString(); ViewBag.BlogSayisi = bRep.GetAll().Count.ToString(); ViewBag.TurSayisi = rep.GetAll().Count(x => x.TurAdi != "_silindi").ToString(); ViewBag.KullaniciSayisi = rep.GetAllUser().Count().ToString(); return(View()); }
public static string YorumSayisi(int id) { YorumRep rep = new YorumRep(); return(rep.GetAll().Count(x => x.BlogYorumID == id).ToString()); }
public ActionResult YorumGoruntule(Yorum y) { List <Yorum> liste = yrep.GetAll(); return(View(liste)); }