public int AddTriger([FromBody] TrigerRuleInfo id) { id.AddTime = DateTime.Now; id.Rule = id.Rule?.Trim(); id.ComposityId = id.ComposityId?.Trim(); if (string.IsNullOrEmpty(id.HttpMethod)) { id.HttpMethod = "GET"; } var allFlowSteps = m_codeService.InsertCode <TrigerRuleInfo>(id); return(allFlowSteps); }
public int UpdateTriger([FromBody] TrigerRuleInfo id) { id.Rule = id.Rule?.Trim(); id.HttpMethod = id.HttpMethod?.Trim(); id.ComposityId = id.ComposityId?.Trim(); //var ww= m_codeService.GetSimpleCode<ComposeEntity>(new { Guid = id.ComposityId }).FirstOrDefault(); // if( ww!=null) // { // ww.Guid== // } var allFlowSteps = m_codeService.UpdateSimpleCode(id); return(allFlowSteps); }