示例#1
0
 public async Task UpdateCompressor(Compressor compressor)
 {
     context.Compressor.Update(compressor);
     await context.SaveChangesAsync();
 }
示例#2
0
 public async Task CreateCompressor(Compressor compressor)
 {
     context.Compressor.Add(compressor);
     await context.SaveChangesAsync();
 }