0

I have been asked to implement an UPDATE operation in C# but the only attributes available are:

Microsoft.AspNetCore.Mvc.HttpDeleteAttribute

Microsoft.AspNetCore.Mvc.HttpGetAttribute

Microsoft.AspNetCore.Mvc.HttpHeadAttribute

Microsoft.AspNetCore.Mvc.HttpOptionsAttribute

Microsoft.AspNetCore.Mvc.HttpPatchAttribute

Microsoft.AspNetCore.Mvc.HttpPostAttribute

Microsoft.AspNetCore.Mvc.HttpPutAttribute

Which is the best method alternative to implement an UPDATE operation?

Stefano M.
  • 11
  • 1

1 Answers1

0

Microsoft.AspNetCore.Mvc.HttpPutAttribute

This will Create/Update an entity

CompiledIO
  • 160
  • 16