Exemple #1
0
        public void RemoveDemoEntities()
        {
            if (DemoSessionId != -1)
            {
                _sessionDao.Remove(DemoSessionId);
            }

            if (!string.IsNullOrEmpty(DemoClassroomId))
            {
                _classroomDao.Remove(DemoClassroomId);
            }

            if (!string.IsNullOrEmpty(DemoSubjectId))
            {
                _subjectDao.Remove(DemoSubjectId);
            }

            if (!string.IsNullOrEmpty(DemoSoftwareId))
            {
                _softwareDao.Remove(DemoSoftwareId);
            }

            if (!string.IsNullOrEmpty(DemoCourseId))
            {
                _courseDao.Remove(DemoCourseId);
            }

            if (!string.IsNullOrEmpty(DemoScheduleId))
            {
                _scheduleDao.Remove(DemoScheduleId);
            }

            ResetDemoIds();
        }
Exemple #2
0
 public void RemoveSoftware(string id)
 {
     SoftwareList.Remove(SoftwareList.First(s => s.Id == id));
     SoftwareDao.Remove(id);
 }