public ReplayBase SetCatInfoParent(CatInfoModel Info) { PublicResourceService prs = new PublicResourceService(); prs.GetCatInfoById(Info.id); prs.CatInfo._parentId = string.IsNullOrEmpty(Info._parentId) ? null : Info._parentId; return(SaveCatInfo(prs.CatInfo)); }
public ReplayBase DelCatInfo(CatInfoModel row) { PublicResourceService prs = new PublicResourceService(); prs.GetCatInfoById(row.id); ReplayBase result = prs.DelCatInfoAndChilds(); if (result.ReturnCode == EnumErrorCode.Success) { SysManagerService.CreateSysUserLog(new SysUserLogModel() { SysUserId = User.Identity.Name, Describe = string.Format("删除分类树节【{0}】点及其子节点," + result.ReturnMessage, prs.CatInfo.caption), FkId = prs.CatInfo.id }); } return(result); }