Exemple #1
0
        /// <summary>
        /// 更新教师密码
        /// </summary>
        /// <param name="teaAccount">教师账号</param>
        /// <param name="teaPwd">教师密码</param>
        /// <returns></returns>
        public Enums.OpResult UpdataPwd(string teaAccount, string teaPwd)
        {
            int count = dao.UpdataPwd(teaAccount, teaPwd);

            if (count > 0)
            {
                return(Enums.OpResult.更新成功);
            }
            else
            {
                return(Enums.OpResult.更新失败);
            }
        }