Example #1
0
 public async Task <int> SaveChanges()
 {
     return(await Db.SaveChangesAsync());
 }
Example #2
0
 public async Task InsertUser(User user)
 {
     user.CreatedAt = DateTime.Now;
     _dbContext.Users.Add(user);
     await _dbContext.SaveChangesAsync();
 }