Exemplo n.º 1
0
        public bool DeleteTeacher(string _teacherID)
        {
            AccountDA accountDA = new AccountDA();
            bool      isExist   = false;
            bool      success   = accountDA.AccountExist(_teacherID, ref isExist);

            if (isExist)
            {
                success = accountDA.DeleteAccount(_teacherID);
            }
            if (success)
            {
                success = teacherDA.DeleteTeacher(_teacherID);
            }
            return(success);
        }