public void Add(Exhibit entity)
        {
            Question question = new Question();

            question.ExhibitId = entity.ExhibitId;
            _exhibitContext.Questions.Add(question);

            _exhibitContext.Exhibits.Add(entity);
            _exhibitContext.SaveChanges();
        }
        public void Add(QuestionCategory entity)
        {
            Question question = new Question();

            question.QuestionCategoryId = entity.QuestionCategoryId;
            _questionCategoryContext.Questions.Add(question);

            _questionCategoryContext.QuestionCategories.Add(entity);
            _questionCategoryContext.SaveChanges();
        }
        public void Add(Subject entity)
        {
            Question question = new Question();

            question.SubjectID = entity.SubjectID;
            _subjectContext.Questions.Add(question);


            _subjectContext.Subjects.Add(entity);
            _subjectContext.SaveChanges();
        }
        public void Add(Test entity)
        {
            TestXQuestion testXQuestion = new TestXQuestion();

            testXQuestion.UniqueTestID = entity.UniqueID;
            _testContext.TestXQuestions.Add(testXQuestion);


            _testContext.Tests.Add(entity);
            _testContext.SaveChanges();
        }
Пример #5
0
        public void Add(TestXQuestion entity)
        {
            TestXPaper testXPaper = new TestXPaper();

            testXPaper.TestXQuestionId = entity.TestXQuestionId;
            _testXQuestionContext.TestXPapers.Add(testXPaper);


            _testXQuestionContext.TestXQuestions.Add(entity);
            _testXQuestionContext.SaveChanges();
        }
Пример #6
0
        public void Add(Question entity)
        {
            Choice choice = new Choice();

            choice.UniqueQuestionID = entity.QuestionUniqueID;
            choice.Points           = entity.Points;
            _questionContext.Choices.Add(choice);

            _questionContext.Questions.Add(entity);
            _questionContext.SaveChanges();
        }
 public void Add(Organization entity)
 {
     _organizationContext.Organizations.Add(entity);
     _organizationContext.SaveChanges();
 }
 public void Add(Teacher entity)
 {
     _teacherContext.Teachers.Add(entity);
     _teacherContext.SaveChanges();
 }
Пример #9
0
 public void Add(Registration entity)
 {
     _registrationContext.Registrations.Add(entity);
     _registrationContext.SaveChanges();
 }
Пример #10
0
 public void Add(QuestionXDuration entity)
 {
     _questionXDurationContext.QuestionXDurations.Add(entity);
     _questionXDurationContext.SaveChanges();
 }
Пример #11
0
 public void Add(Choice entity)
 {
     _choiceContext.Choices.Add(entity);
     _choiceContext.SaveChanges();
 }
Пример #12
0
 public void Add(TestXPaper entity)
 {
     _testXPaperContext.TestXPapers.Add(entity);
     _testXPaperContext.SaveChanges();
 }
 public void Add(AdminPanel entity)
 {
     _adminContext.AdminPanels.Add(entity);
     _adminContext.SaveChanges();
 }