public bool UpdateAuthNodeButton(List <string> ids, Guid iUserId) { var szServices = new DbHelperEfSql <AuthNodeButton>(); IList <AuthNodeButton> list = ids.Select(cc => new AuthNodeButton { AuthNodeButtonID = Guid.NewGuid(), UserID = iUserId, NodeButtonId = Convert.ToInt32(cc) - 100000, OperateDate = DateTime.Now }).ToList(); return(szServices.TransDeleteCAddL(list, c => c.UserID == iUserId)); }
public bool UpdateAuthRoleNode(List <string> ids, Guid iRoleId) { var szServices = new DbHelperEfSql <AuthRoleNode>(); IList <AuthRoleNode> list = ids.Select(cc => new AuthRoleNode { AuthRoleNodeID = Guid.NewGuid(), RoleID = iRoleId, NodeId = Convert.ToInt32(cc), OperateDate = DateTime.Now }).ToList(); return(szServices.TransDeleteCAddL(list, c => c.RoleID == iRoleId)); }
public bool UpdateAuthNodeButton(IList <AuthNodeButton> list, Guid iUserId) { var szServices = new DbHelperEfSql <AuthNodeButton>(); return(szServices.TransDeleteCAddL(list, c => c.UserID == iUserId)); }