public int SaveTeacher(Teacher teacher)
        {
            TeacherGateWay teacherGateWay = new TeacherGateWay();
            int            rowAffected    = teacherGateWay.SaveTeacher(teacher);

            return(rowAffected);
        }
        public string SaveTeacher(TeacherModel aTeacherModel)
        {
            TeacherGateWay aTeacherGateWay = new TeacherGateWay();
            string         message         = "";

            if (aTeacherGateWay.IsTeacherEmailExist(aTeacherModel.TeacherEmail))
            {
                message = "Teacher Email Exists";
            }
            else
            {
                int rowAffected = aTeacherGateWay.SaveTeacher(aTeacherModel);// aDepartmentGateway.SaveDepartment(aDepartmetModel);
                if (rowAffected > 0)
                {
                    message = "Teacher Saved Successfully";
                }
                else
                {
                    message = "Sorry! Teacher Save Failed !!";
                }
            }
            return(message);
        }