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); }
public IActionResult ChangeDisable(int id) { var old = m_codeService.GetSimpleCodeLinq <DefaultUser>(p => p.Id == id)?.FirstOrDefault(); if (old == null) { return(Json(new { isok = false, meg = "用户不存在" })); } old.IsDisable = true; var page = m_codeService.UpdateSimpleCode(old); return(Json(new { isok = true })); }
private ComposeTemplate FindComposeTemplet(string tid) { lock (lockobj) { var cons = APP.ComposeTemplates.FirstOrDefault(p => p.Guid == tid); if (cons == null) { cons = CodeService.GetSimpleCodeLinq <ComposeTemplate>(p => p.Guid == tid).FirstOrDefault(); if (cons != null) { APP.ComposeTemplates.Add(cons); } } return(cons); } }