Ejemplo n.º 1
0
        /// <summary>
        /// Adds loyalty points to the user.
        /// </summary>
        /// <returns></returns>
        public ActionResult LoyaltyPoints()
        {
            int uid      = 0;
            var question = Session["question"] as QuestionModel;

            uid = question.UserId;
            var user = Session["user"] as UserModel;

            if (user == null)
            {
                return(Json(false));
            }
            else
            {
                UserModel.AddLoyaltyPoints(uid);
                return(View());
            }
        }