Exemplo n.º 1
0
        public Boolean CreateTeacher(ref TeacherBDO teacherBDO, ref string message)
        {
            Boolean    ret  = false;
            TeacherBDO tBDO = GetTeacher(teacherBDO.LastName, teacherBDO.FirstName);

            if (tBDO == null)
            {
                //   teacherBDO.TeacherId = GenerateTeacherId();
                ret = teacherDAO.CreateTeacher(ref teacherBDO, ref message);
            }
            else
            {
                message = teacherBDO.LastName + ", " + teacherBDO.FirstName + " already exists. Please check your entry";
            }

            return(ret);
        }