'Update of Table when I don't have the key value

I am developing a .net core api using entity framework. I have done development for a while but am new to entity framework. In addition I am attempting to implement using DTO objects to restrict and reduce the amount of information available. My problem is this. If I do not pass my unique id from the DB back to the end user how can I perform an update against that object?

For example I have a class that has

ID, FirstName, LastName, Age

My DTO back to the end user is:

FirstName, LastName, Age

How can I implement Update and Delete without the ID?

I know this is probably a dumb question and I am missing the obvious so please be gentle. I have looked for the answer but every time I search I just keep finding questions about tables that don't have a primary key.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source