public ActionResult commentPartialView(string commentId) { var lookupId = int.Parse(commentId); var model = ObsługaBazyDanych.zwrocKomentarzPoID(lookupId); return(PartialView("commentsPartial", model)); }
public ActionResult komentarzDownVote(string userName, string commentID) { Debug.WriteLine(userName + " " + commentID + "pierwszyGet"); ObsługaBazyDanych.UsunGlosDoKomentarza(userName, commentID); //ObsługaBazyDanych.bazadanych.VotesSet.Add(); var comment = ObsługaBazyDanych.zwrocKomentarzPoID(Int32.Parse(commentID)); return(Json(new { upVotes = comment.upVotes, id = comment.Comment_ID, user = userName }, JsonRequestBehavior.AllowGet)); }