public personModel GetAjax(String name, Int32 age) { var a = new personModel(); a.name = name; a.age = age; return(a); }
public personModel FormReq() { var name = HttpContext.Current.Request["name"]; var age = HttpContext.Current.Request["age"]; var a = new personModel(); a.name = name; a.age = Int32.Parse(age); return(a); }
public personModel postReqSleep([FromBody] personModel obj) { Thread.Sleep(5000); //挂起5s 做延迟 return(obj); }
public personModel PostAjax([FromBody] personModel obj) { return(obj); }