Exemplo n.º 1
0
        public ActionResult EdytujPost(int id)
        {
            var post = ObsługaBazyDanych.zwrocPostPoId(id);

            TempData["BlogPostId"] = post.Blogs.Blog_ID;
            return(View(post));
        }
Exemplo n.º 2
0
        public ActionResult UsunKomentarz(int id, int idPostu)
        {
            ObsługaBazyDanych.usunKomentarz(id);
            var post = ObsługaBazyDanych.zwrocPostPoId(idPostu);

            return(View("WyswietlPost", post));
        }
Exemplo n.º 3
0
        public ActionResult commentListPartialView(string postID)
        {
            Debug.WriteLine(postID);
            var post = ObsługaBazyDanych.zwrocPostPoId(Int32.Parse(postID));

            return(PartialView("commentListPartial", post));
        }
Exemplo n.º 4
0
        public ActionResult WyswietlPost(int id)
        {
            var post = ObsługaBazyDanych.zwrocPostPoId(id);

            return(View(post));
        }