1

In CRUD Operations

Many People use [HttpPost] to ( Add, Update , Delete ) .

So : When we use [HttpPost] , [HttpPut] , [HttpDelete] and what is the Different .?

Mazen Ahmed
  • 100
  • 5

1 Answers1

2

To make it simple :

  • POST = create
  • PUT = update (more precisely, full update. For a partial update, use PATCH)
  • DELETE = delete

More on that here : https://www.restapitutorial.com/lessons/httpmethods.html

Muldec
  • 4,641
  • 1
  • 25
  • 44