public void SaveFormApi(string keyValue, Base_FlowEntity entity) { try { service.SaveFormApi(keyValue, entity); } catch (Exception) { throw; } }
public string SaveFlowForm([FromBody] FlowModelClass flowclass) { string keyValue = flowclass.keyValue; string userid = flowclass.userid; string username = flowclass.username; Base_FlowEntity entity = flowclass.flowJson.ToObject <Base_FlowEntity>(); keyValue = ""; if (string.IsNullOrEmpty(keyValue)) { entity.CreateUserId = userid; entity.CreateUserName = username; } else { entity.ModifyUserId = userid; entity.ModifyUserName = username; } entity.FlowCount = "1"; base_flowbll.SaveFormApi(keyValue, entity); return(entity.FlowId); }
public ActionResult SaveForm(string keyValue, Base_FlowEntity entity) { base_flowbll.SaveForm(keyValue, entity); entity.FlowCount = "1"; return(Success("操作成功。")); }