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

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