.net webapi接收form-data类型

2021-06-15 17:04

阅读:636

标签:rop   code   tpc   col   ext   request对象   pass   获取   传统   

public OperationResultDto APILogin()
{

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"];
  }

 

.net webapi接收form-data类型

标签:rop   code   tpc   col   ext   request对象   pass   获取   传统   

原文地址:https://www.cnblogs.com/yxz1006/p/10361904.html


评论


亲,登录后才可以留言!