예제 #1
0
        public bool DeleteSetp([FromBody] string id)
        {
            var oldobj = m_codeService.GetSimpleCodeLinq <AConFlowStep>(p => p.Guid == id).FirstOrDefault();

            if (oldobj == null)
            {
                return(false);
            }
            var allpos = m_codeService.DeleteSimpleCode <AConFlowStep>(oldobj);

            return(allpos);
        }
예제 #2
0
        public IActionResult DelKey(string key)
        {
            var result = true;
            //var sd = new SystemDictionary();// { AddTime = DateTime.Now, IsSystem = false, KeyName = key, Value = value, SystemDictionarytype = SystemDictionarytype.String };
            var recode = m_codeService.GetSimpleCode <SystemDictionary>(new { KeyName = key }).FirstOrDefault();

            if (recode != null)
            {
                result = m_codeService.DeleteSimpleCode <SystemDictionary>(recode);
            }
            return(new JsonResult(new { isok = result }));
        }