Example #1
0
 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();
     }
 }
Example #2
0
 public async Task CommitAsync()
 {
     await _dbContext.SaveChangesAsync();
 }