Exemple #1
0
 public Task Add(TransferLog transferLog)
 {
     try
     {
         transferDbContext.AddAsync(transferLog);
         transferDbContext.SaveChanges();
     }
     catch (System.Exception)
     {
         ;
     }
     return(Task.CompletedTask);
 }
Exemple #2
0
        public async Task AddAsync(TransferLog transferLog)
        {
            await dbContext.AddAsync(transferLog);

            await dbContext.SaveChangesAsync();
        }