protected HttpResponseMessage CreatedResponse(string routeName, object routeValues)
{
var response = Request.CreateResponse(HttpStatusCode.Created);
var locationUri = Url.Link(routeName, routeValues);
response.Headers.Location = new Uri(locationUri);
return response;
}
.netコアの同等のコードとは何ですか? それとも回避する方法..あなたはController.Created
メソッドを使用する必要があるが、今、それはまた、URIに関する情報を必要と.netコアのHttpResponseMessage(Request.CreateResponse)を回避するには
おかげ