传参:
1:URL 传参 实体接收
2:表单提交
var data = System.Web.HttpContext.Current.Request.Form["data"]; //接收
JsonConvert.DeserializeObject<MHEventBookInputDto>(data); //序列化实体
var serializer = new JavaScriptSerializer();
//将object对象转换为json字符
var json = serializer.Serialize(dataList);
//将json字符转换为实体对象
var t = serializer.Deserialize<dtoo>(json);
返回:
1:IHttpActionResult
导出文件返回 return Redirect(new Uri(MHCBHealthGroupApp.GetGrouppublicWordForExport(t.data), UriKind.Relative));
2:HttpResponseMessage
return ResponseResult(req, membersSevicesLogApp.FilterMembersSevicesLog, true);