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