public async Task UpdateCompressor(Compressor compressor) { context.Compressor.Update(compressor); await context.SaveChangesAsync(); }
public async Task CreateCompressor(Compressor compressor) { context.Compressor.Add(compressor); await context.SaveChangesAsync(); }