Example #1
0
        public ActionResult Yorum(int id)
        {
            YorumRep rep   = new YorumRep();
            var      liste = rep.GetAll().Where(x => x.BlogYorum.BlogID == id);

            return(View(liste));
        }
Example #2
0
        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));
        }
Example #3
0
        // 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());
        }
Example #4
0
        public static string YorumSayisi(int id)
        {
            YorumRep rep = new YorumRep();

            return(rep.GetAll().Count(x => x.BlogYorumID == id).ToString());
        }
Example #5
0
        public ActionResult YorumGoruntule(Yorum y)
        {
            List <Yorum> liste = yrep.GetAll();

            return(View(liste));
        }