public async Task Edit(EF.Setting args) { using (var context = new EF.SampleDbContext()) { var row = context.Setting.First(x => x.SettingId == args.SettingId); row.Value = args.Value; await context.SaveChangesAsync(); } }
public async Task CommitAsync() { await _dbContext.SaveChangesAsync(); }