[英]UPDATE CRUD operation in C# restful webservice
I have been asked to implement an UPDATE operation in C# but the only attributes available are:我被要求在 C# 中实现 UPDATE 操作,但唯一可用的属性是:
Microsoft.AspNetCore.Mvc.HttpDeleteAttribute
Microsoft.AspNetCore.Mvc.HttpDeleteAttribute
Microsoft.AspNetCore.Mvc.HttpGetAttribute
Microsoft.AspNetCore.Mvc.HttpGetAttribute
Microsoft.AspNetCore.Mvc.HttpHeadAttribute
Microsoft.AspNetCore.Mvc.HttpHeadAttribute
Microsoft.AspNetCore.Mvc.HttpOptionsAttribute
Microsoft.AspNetCore.Mvc.HttpOptionsAttribute
Microsoft.AspNetCore.Mvc.HttpPatchAttribute
Microsoft.AspNetCore.Mvc.HttpPatchAttribute
Microsoft.AspNetCore.Mvc.HttpPostAttribute
Microsoft.AspNetCore.Mvc.HttpPostAttribute
Microsoft.AspNetCore.Mvc.HttpPutAttribute
Microsoft.AspNetCore.Mvc.HttpPutAttribute
Which is the best method alternative to implement an UPDATE operation?哪个是实现 UPDATE 操作的最佳替代方法?
Microsoft.AspNetCore.Mvc.HttpPutAttribute Microsoft.AspNetCore.Mvc.HttpPutAttribute
This will Create/Update an entity这将创建/更新一个实体
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.