I have two tables. One of them is Customers which is in the database, the other one is ChangedCustomers, which comes from the user. I write the updated model, I guess there is something missing.

```
public async Task<int> UpdateCustomers (IENumerable<ChangedCustomers> changedCustomers
{
  foreach(var item in changedCustomers)
  {
    _context.Customers.Updaate (new Customers()
     {
       CustomerName=item.CustomerName,
       CustomerAddress=item.CustomerAddress
     });
  }
return await _context.SaveChangesAsync();
}

```

In Method I am not saying something like "update that row when Id values in Customers and ChangedCustomers tables are equal". I need this but I can't. How can I do it?