Exemplo n.º 1
0
        public ActionResult Create(ProcessCreateInput input)
        {
            if (!this.ModelState.IsValid)
            {
                return this.ModelState.ToJsonResult();
            }
            AcDomain.Handle(input.ToCommand(AcSession));

            Debug.Assert(input.Id != null, "input.Id != null");
            return this.JsonResult(new ResponseData { success = true, id = input.Id.Value });
        }
Exemplo n.º 2
0
        public ActionResult Create(ProcessCreateInput input)
        {
            if (!this.ModelState.IsValid)
            {
                return(this.ModelState.ToJsonResult());
            }
            AcDomain.Handle(input.ToCommand(AcSession));

            Debug.Assert(input.Id != null, "input.Id != null");
            return(this.JsonResult(new ResponseData {
                success = true, id = input.Id.Value
            }));
        }