SyntaxFix
Write A Post
Hire A Developer
Questions
Try the below code:
[Route("/test")] [HttpPost] public async Task Test() { using (var reader = new StreamReader(Request.Body, Encoding.UTF8)) { var textFromBody = await reader.ReadToEndAsync(); } }