Beispiel #1
0
 public async Task AddUser(User user)
 {
     Console.WriteLine(user.Username);
     if (DBContext.Users.FirstOrDefault(u => u.Username.Equals(user.Username)) == null)
     {
         DBContext.Users.AddAsync(user);
         DBContext.SaveChangesAsync();
     }
 }
 public async Task Add(Adult newAdult)
 {
     DBContext.Adults.AddAsync(newAdult);
     DBContext.SaveChangesAsync();
 }