Not sure if I am going about this the right way but want to update certain properties of a user object contained in a users List based on whether it is contained in another list.

This is what I tried.

```
foreach (var v in usersAssessment)
{
    if (users.Select(t => t.Id).Contains(v.Id))
    {
        var user = users.Where(p => p.Id == v.Id).FirstOrDefault();
        switch (v.ModuleCode)
        {
            case "M01":
                user.M01 = v.ScoreObtained;
                break;
        }
        //this is where I am trying to update the user but to no avail
        users.Where(p => p.Id == v.Id).FirstOrDefault() = user;
    }
}

```

How can I update the property values?

Kind regards