CreateAtRoute
.NETCore3.1我Post请求正常情况下返回的是CreatedAtRoute()。 到更高版本需要在services.AddControllers中设置c.SuppressAsyncSuffixInActionNames = false; (Action后缀Async)
然后改用CreatedAtAction
.NETCore3.1我Post请求正常情况下返回的是CreatedAtRoute()。 到更高版本需要在services.AddControllers中设置c.SuppressAsyncSuffixInActionNames = false; (Action后缀Async)
然后改用CreatedAtAction