Exemplo n.º 1
0
        /// <summary>
        /// 传递一个userName参数使用户感谢+1
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        public int GiveUserName(string userName, string Num)
        {
            User_dal user_dal = new User_dal();

            if ((int)user_dal.UpdateStarCount(userName, Num) == 1)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }