Ejemplo n.º 1
0
        public IActionResult AjaxTest([FromBody] AjaxTest test)
        {
            var variable = _serv.GetProduct(test.ProductId);
            var settings = new JsonSerializerSettings();

            settings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
            HttpContext.Response.Cookies.Append("Heh", "heheh");
            return(Json(variable, settings));
        }
Ejemplo n.º 2
0
 public ActionResult DelayNum(int delaySec, string begin) => Content(AjaxTest.DelayByNum(delaySec, begin));
Ejemplo n.º 3
0
 public ActionResult Delay0(string begin) => Content(AjaxTest.Delay0(begin));
Ejemplo n.º 4
0
 public ActionResult SimuAjaxCall(int seqNo, int delay) => Content(AjaxTest.DelayByNum(delay, "", seqNo));