Пример #1
0
 public async Task SaveChangesAsync()
 {
     if (await _dbContext.SaveChangesAsync() < 0)
     {
         throw new Exception("Cannot save changes in db.");
     }
 }