标签: c# .net-core httpcontext
我想通过 HttpContext 访问参数中的User。有办法吗?
User
public class User { public string UserName { get; set; } public string Password { get; set; } } public IActionResult Test(User user) { return Ok(); }