【发布时间】:2018-11-02 17:48:38
【问题描述】:
如何在一个请求中发送两个参数?
我知道如何用一个参数发送一个请求。
我使用postman 发送请求。
这是person 代码:
public class Person
{
public string Name { get; set; }
public string Position { get; set; }
}
这是我的控制器代码:
[HttpPost("Add")]
public async Task<IActionResult> Add(List<IFormFile> files, Person person)
我怎样才能意识到这一点?
【问题讨论】:
标签: c# asp.net-core asp.net-core-webapi