Example #1
0
        public ActionResult EdytujPost(int id)
        {
            var post = ObsługaBazyDanych.zwrocPostPoId(id);

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

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

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

            return(View(post));
        }