Click here to Skip to main content
15,881,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am sending Employee Data in Web APi-2 Action Method and after that calling repository to insert/update/delete.
Every time using Httppost Verb and getting data in action method after that repository calling my store procedure and insertion/inundation/deletion is working proper.
So without using Get/put and delete every thing doing by post method.
so is there any situation where put is required ???

What I have tried:

Allways using Httppost and calling store procedure.
Posted
Updated 2-Jul-18 0:54am

1 solution

Both PUT and POST can be used for creating. In more general, PUT is to create a resource whereas POST is to update a resource.

Your answer is here[^].


KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900