4,815 questions
It should be part of Request.Body
See the example:
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
public class MyController : Controller
{
[HttpPost]
public IActionResult MyAction()
{
// Read the post data from the request body
using (var reader = new StreamReader(HttpContext.Request.Body))
{
var postData = reader.ReadToEnd();
// Process the post data as needed
// ...
}
// Return a response
return Ok();
}
}