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 }); }
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 })); }