public ActionResult EdytujPost(int id) { var post = ObsługaBazyDanych.zwrocPostPoId(id); TempData["BlogPostId"] = post.Blogs.Blog_ID; return(View(post)); }
public ActionResult UsunKomentarz(int id, int idPostu) { ObsługaBazyDanych.usunKomentarz(id); var post = ObsługaBazyDanych.zwrocPostPoId(idPostu); return(View("WyswietlPost", post)); }
public ActionResult commentListPartialView(string postID) { Debug.WriteLine(postID); var post = ObsługaBazyDanych.zwrocPostPoId(Int32.Parse(postID)); return(PartialView("commentListPartial", post)); }
public ActionResult WyswietlPost(int id) { var post = ObsługaBazyDanych.zwrocPostPoId(id); return(View(post)); }