Example #1
0
        /// <summary>
        /// 修改试题
        /// </summary>
        /// <param name="ques"></param>
        /// <returns></returns>
        public int Update(BackQuestionBank ques)
        {
            var   result = question.Update(ques);
            Users us     = (Users)Session["User"];

            if (result > 0)
            {
                logs.Add(us.ID, "修改试题", 1);
            }
            else
            {
                logs.Add(us.ID, "修改试题", 0);
            }
            return(result);
        }