EntityState.Modified is useless in your case because the object you are updating is already being tracked by the context when you retrieve it from the context.
You will need this in the following scenario, in which you are not extracting your entity from the context:
Member member = new Member({Id=1, Name="member"}) ; context.Entry(member).State = EntityState.Modified; context.SaveChanges();
In addition, as indicated in the previous answer, your context sometimes only tracks a limited “view” of the database, and therefore you need to start tracking manually, as shown above.
Microsoft doc
Yoann source share