public async TaskThe "FromForm" attribute in the method signature tells ASP.NET Core to bind the form data to the IFormCollection parameter. The IFormCollection interface is part of the Microsoft.AspNetCore.Http namespace in the Microsoft.AspNetCore.Http.Abstractions package.ProcessForm([FromForm] IFormCollection form) { string username = form["username"]; // do something with the username value return Ok(); }