Exemplo n.º 1
0
        public async Task <Questions> Create(Questions question)
        {
            dbContext.Questions.Add(question);
            await dbContext.SaveChangesAsync();

            return(question);
        }
Exemplo n.º 2
0
        public async Task <List <Options> > Create(List <Options> options)
        {
            dbContext.Options.AddRange(options);
            await dbContext.SaveChangesAsync();

            return(options);
        }
        public async Task <UserAnswers> Create(UserAnswers userAnswer)
        {
            dbContext.UserAnswers.Add(userAnswer);
            await dbContext.SaveChangesAsync();

            return(userAnswer);
        }