.net webapi接收form-data类型
2021-06-15 17:04
标签:rop code tpc col ext request对象 pass 获取 传统 public OperationResultDto APILogin() .net webapi接收form-data类型 标签:rop code tpc col ext request对象 pass 获取 传统 原文地址:https://www.cnblogs.com/yxz1006/p/10361904.html
{LoginModel model = new LoginModel();
HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"];//获取传统context
HttpRequestBase request = context.Request;//定义传统request对象
model.EID = request.Form["eid"];
model.Password = request.Form["password"];
}
上一篇:Node.js 安装及环境配置之 Windows 篇
下一篇:C# 多态的实现