简体   繁体   中英

UPDATE CRUD operation in C# restful webservice

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?

Microsoft.AspNetCore.Mvc.HttpPutAttribute

This will Create/Update an entity

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM