Exemple #1
0
        public async Task AddSubjectnAsync(Subject subject)
        {
            await _context.Subjects.AddAsync(subject);

            await _context.SaveChangesAsync();
        }
Exemple #2
0
        public async Task AddAppUserAsync(RootUser rootUser)
        {
            await _context.RootUsers.AddAsync(rootUser);

            await _context.SaveChangesAsync();
        }
Exemple #3
0
        public async Task AddPrepodAsync(Prepod prepod)
        {
            await _context.Prepods.AddAsync(prepod);

            await _context.SaveChangesAsync();
        }
Exemple #4
0
        public async Task AddAnswerAsync(Answer answer)
        {
            await _context.Answers.AddAsync(answer);

            await _context.SaveChangesAsync();
        }
Exemple #5
0
        public async Task AddStudentAsync(Student student)
        {
            await _context.Students.AddAsync(student);

            await _context.SaveChangesAsync();
        }
Exemple #6
0
        public async Task AddQuestionAsync(Question question)
        {
            await _context.Questions.AddAsync(question);

            await _context.SaveChangesAsync();
        }
Exemple #7
0
        public async Task AddThemesnAsync(Theme theme)
        {
            await _context.Themes.AddAsync(theme);

            await _context.SaveChangesAsync();
        }