public ActionResult blogPartialView(string blogID) { var lookupId = int.Parse(blogID); var model = ObsługaBazyDanych.zwrocBlogPoId(lookupId); return(PartialView("blogFollowButton", model)); }
public ActionResult UsunPost(int id, int idBlog) { ObsługaBazyDanych.usunPost(id); var blog = ObsługaBazyDanych.zwrocBlogPoId(idBlog); return(RedirectToAction("WyswietlBlog", new { id = idBlog })); }
public ActionResult blogUnFollow(string userName, string blogID) { Debug.WriteLine(userName + " " + blogID + "pierwszyGet"); ObsługaBazyDanych.UsunFollowZBloga(userName, blogID); var blog = ObsługaBazyDanych.zwrocBlogPoId(Int32.Parse(blogID)); return(Json(new { followCount = blog.followCount, id = blog.Blog_ID, user = userName }, JsonRequestBehavior.AllowGet)); }
//na razie authorize public ActionResult WyswietlBlog(int id) { var blog = ObsługaBazyDanych.zwrocBlogPoId(id); return(View(blog)); }