I principi fondamentali della nuovo indirizzo Overposting
, replace the HttpPostAttribute Create action method with the following code. This code adds a try-catch block and removes ID from the BindAttribute attribute for the scaffolded method:This code instantiates a Student entity using only the primary key value and then sets the entity state to Deleted. That's all that the Entity Framework needs Per or