In previous articles of the ASP.NET Web API series, I’ve used HttpPut method of HTTP by which we can update a member into our specific database. So for updating information as per our expectations we use HttpPut method by using a URI. In this article of the series, I’ll work on Delete() method of HTTP. You can follow ASP.NET Web API series for the purpose of how Get() and, Post() and Put() method requests work as given in the following links –
Now, we’ll work on another method of HTTP that is Delete() method which is responsible for Deleting existing data to the server. I’m going to working with my previous project Entity Framework that I have created in previous articles of the series in Using Entity Framework In ASP.NET Web API – Part Three.
In this, I will show you how we can delete data which would be saved in my SQL database by using Delete() method. So just flip to Visual Studio and open your previous project.
Under the IEmployeTest Interface create a method for deleting a record of employees followed by the table name, that is Employee.
Here is the screenshot of IEmployeInterface -
In this, I will show you how we can delete data which would be saved in my SQL database by using Delete() method. So just flip to Visual Studio and open your previous project.
Under the IEmployeTest Interface create a method for deleting a record of employees followed by the table name, that is Employee.
- string DeleteEmploye(int empID);







manjunath bilwarPosted Apr 29, 2022, 5:55 AM
Very Informative!
K P Singh ChundawatPosted Jul 1, 2016, 4:48 AM
Amit Mishra How to pass Object as a Parameter in HttpDelete verb in webApi?
Amit MishraPosted Jul 1, 2016, 12:03 AM
Thanks to all...
Vignesh ManiPosted Jun 30, 2016, 5:37 PM
Nice
kalu singh raoPosted Jun 30, 2016, 2:25 PM
Nice...