예제 #1
0
        public personModel GetAjax(String name, Int32 age)
        {
            var a = new personModel();

            a.name = name;
            a.age  = age;
            return(a);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public personModel postReqSleep([FromBody] personModel obj)
 {
     Thread.Sleep(5000);   //挂起5s 做延迟
     return(obj);
 }
예제 #4
0
 public personModel PostAjax([FromBody] personModel obj)
 {
     return(obj);
 }