Пример #1
0
        public string UpdateTeacher()
        {
            int rowAffact = teacherGetway.UpdateTeacher();

            if (rowAffact > 0)
            {
                return("Finish");
            }

            return("Faild");
        }
Пример #2
0
 public bool UpdateTeacher(Teacher teacher)
 {
     try
     {
         TeacherGetway teacherGetway = new TeacherGetway();
         return(teacherGetway.UpdateTeacher(teacher));
     }
     catch (Exception)
     {
         throw;
     }
 }