Exemple #1
0
        /// <summary>
        /// 删除教师
        /// </summary>
        /// <param name="TeaAccount">教师主键</param>
        /// <returns></returns>
        public Enums.OpResult Delete(String TeaAccount)
        {
            int count = dao.delete(TeaAccount);

            if (count > 0)
            {
                return(Enums.OpResult.除成功);
            }
            else
            {
                return(Enums.OpResult.除失败);
            }
        }
Exemple #2
0
        public void deleteTeacher(int id)
        {
            TeacherDao helper = new TeacherDao();

            helper.delete(id);
        }