Beispiel #1
0
        public ActionResult komentarzUpVote(string userName, string commentID)
        {
            Debug.WriteLine(userName + " " + commentID + "pierwszyGet");
            ObsługaBazyDanych.DodajGlosDoKomentarza(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));
        }