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

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

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

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

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

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

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

            await _context.SaveChangesAsync();
        }