public async Task InsertOrUpdate(Produto produto) { using (var context = new TransireContext()) { context.Entry(produto).State = produto.EntityState.ToEntityFrameworkState(); await context.SaveChangesAsync(); } }