Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }