public ActionResult Handle(FormCollection form) { JsonResult jResult = new JsonResult(); bool bol = false; try { FormService former = AntApi.Former; Dictionary <string, object> fieldDict = new Dictionary <string, object>(); foreach (string key in form.Keys) { fieldDict.Add(key, form[key]); } //TryUpdateModel<Dictionary<string, object>>(fieldDict, form); former.SubmitFormData(new Guid(form["InstanceGuid"]), fieldDict); RuntimeService run = AntApi.Runtime; run.Next(new Guid(form["InstanceGuid"]), new Guid(form["TaskGuid"])); bol = true; } catch (Exception e) { } //Response.Redirect("/Home/List"); if (bol) { jResult.Data = new { Code = "200", Message = "保存成功" }; } else { jResult.Data = new { Code = "400", Message = "保存失败" }; } return(jResult); }