I have the following question: Do I get a ViewModel in the Controller of ASP.NET. In the upgrade method I have two options:
- 1st option: transfer the ViewModel to the respective bank entity directly and update.
- 2nd option: Search first for the id of the object to be updated and then transfer the ViewModel to the respective entity of the database and update.
What would be the right way to do it?