Exemplo n.º 1
0
        public int AddTeacher(TeacherDTO teacherDTO)
        {
            Teacher teacher = new Teacher();

            teacher.teacherId        = 13;
            teacher.teacherTz        = teacherDTO.teacherTz;
            teacher.teacherFirstName = teacherDTO.teacherFirstName;
            teacher.teacherLastName  = teacherDTO.teacherLastName;
            teacher.teacherPel       = teacherDTO.teacherPel;
            teacher.teacherEmail     = teacherDTO.teacherEmail;
            teacher.teacherPassword  = teacherDTO.teacherPassword;
            TeacherDAL t      = new TeacherDAL();
            int        result = t.AddTeacher(teacher);

            return(result);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 添加教师信息
 /// </summary>
 /// <param name="model">教师的实体对象</param>
 public void AddTeacher(TeachersModel model)
 {
     teacher.AddTeacher(model);
 }
 /// <summary>
 /// 添加
 ///</summary>
 public static int AddTeacher(Teacher TeacherModel)
 {
     return(TeacherDAL.AddTeacher(TeacherModel));
 }