Esempio n. 1
0
        /// <summary>
        /// 更新教师
        /// </summary>
        /// <param name="teacher">教师实体</param>
        /// <returns></returns>
        public Enums.OpResult Updata(Teacher teacher)
        {
            int count = dao.Updata(teacher);

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