internal string SaveTeacher(Teacher aTeacher) { if (aTeacher.Name == "") { throw new Exception("Enter name ....!!!!!"); } if (aTeacher.Email == "") { throw new Exception("Enter Email ....!!!!!"); } int aTest = _TeacherGetway.GetValidation(aTeacher.Name); if (aTest > 0) { throw new Exception("this Code already Existed....!!!!!"); } return(_TeacherGetway.SaveTeacher(aTeacher)); }