似乎我通过postman传递的数据与控制器方法中的模型不匹配。我正在.Net应用程序中实现web api端点,以同时处理多个文件上传的保存。我的JSON结构有什么问题吗 视图模型 public class DocumentUploadCreateViewModel public int ManagerStrategyIdmgrStrategyDocument1); return Ok(mgrStrategyDocument);
这是我的模型{ public string Name { get; set;IActionResult Create([FromBody] Country country) return StatusCode(500, "");当我使用以下数据通过PostMan测试我的控制器时,为什么country对象总是空。这是我