Exemplo n.º 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();
        }
 public void RemoveCourse(string id)
 {
     Courses.Remove(Courses.First(c => c.Id == id));
     CourseDao.Remove(id);
 }