HTTP DELETE
Learn how to create action methods for deleting data via JSON Web APIs.
We'll cover the following...
We'll cover the following...
DELETE
To implement HTTP DELETE, you will create an action method and call it DeleteUser(). It will take an id of type integer as an input parameter. You will locate and delete the record with id equal to the one passed as an argument.
Code snippet
Explanation
The method is annotated with [HttpDelete("{id}")]. This attribute tells the framework that this method is an HTTP DELETE ...