62,047
社区成员
发帖
与我相关
我的任务
分享
public string Get(int id,string name)
[HttpPost]
public string Post([FromBody]user json)
HttpContext.Current.Request.QueryString[""];
HttpContext.Current.Request.Form[""];
HttpContext.Current.Request.Files[""]
public string Get(int id,string name="张三")
这时候你只要传入id就可以,name不传的话就是 张三