コード例 #1
0
        public ActionResult SayHello(FooX fx)
        {
            //Response.ContentType = "text/plain";
            //return new ContentResult { Content = "Content result execution" };
            //return new JsonResult { Data = fx, JsonRequestBehavior = JsonRequestBehavior.AllowGet };

            return View((object)"ABC");
        }
コード例 #2
0
        public String SayHelloPost(FooX fx)
        {
            Response.ContentType = "text/plain";

            return "Hello SLB o maior " + fx.foo + " " + fx.x;
        }