public JsonResult GetCodeById(int actionId)
        {
            var actionCode = BackendActionService.GetCodeById(actionId);

            return(Json(new
            {
                success = true,
                actionCode
            }));
        }
Exemple #2
0
        public JsonResult GetCodeById(int actionId)
        {
            var actionCode = BackendActionService.GetCodeById(actionId);

            return(new JsonResult
            {
                Data = new
                {
                    success = true,
                    actionCode
                },
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }