public async Task CreateAsync(Question question)
 {
     try
     {
         db.Question.Add(question);
         await db.SaveChangesAsync();
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #2
0
 public async Task CreateAsync(User user)
 {
     db.User.Add(user);
     await db.SaveChangesAsync();
 }