public int UpdateTeacher(TeacherModel aTeacherModel)
 {
     {
         if (aTeacherGateWay.IsTeacherEmailExist(aTeacherModel.teacherEmail))
         {
             return(5);
         }
         else
         {
             int rowAffected = aTeacherGateWay.UpdateTeacher(aTeacherModel);
             return(rowAffected);
         }
     }
 }
        public int UpdateTeacher(TeacherModel aTeacherModel)
        {
            TeacherGateWay aTeacherGateWay = new TeacherGateWay();
            //{

            //if (aTeacherGateWay.IsTeacherEmailExist(aTeacherModel.teacherEmail))
            //{
            //    return 5;
            //}
            //else
            //{
            int rowAffected = aTeacherGateWay.UpdateTeacher(aTeacherModel);

            return(rowAffected);
            //    }

            //}
        }