public Task Add(TransferLog transferLog) { try { transferDbContext.AddAsync(transferLog); transferDbContext.SaveChanges(); } catch (System.Exception) { ; } return(Task.CompletedTask); }
public async Task AddAsync(TransferLog transferLog) { await dbContext.AddAsync(transferLog); await dbContext.SaveChangesAsync(); }