Example #1
0
        /// <summary>
        /// Adds a reputation point.
        /// </summary>
        /// <param name="rep"></param>
        /// <returns></returns>
        public ActionResult AddReputation(int rep)
        {
            var user = Session["user"] as UserModel;

            if (user == null)
            {
                return(Json(false));
            }
            else
            {
                UserModel.AddReputationPoints(rep);

                return(View());
            }
        }