public bool ContainsUser(ServerScriptModelUserModel user) { return(GroupUtilities.Contains( context: Context, groupId: GroupId, user: SiteInfo.User( context: Context, userId: user?.UserId ?? 0))); }
public bool ContainsDept(ServerScriptModelDeptModel dept) { return(GroupUtilities.Contains( context: Context, groupId: GroupId, dept: SiteInfo.Dept( tenantId: Context.TenantId, deptId: dept?.DeptId ?? 0))); }
public bool ContainsUser(int userId) { return(GroupUtilities.Contains( context: Context, groupId: GroupId, user: SiteInfo.User( context: Context, userId: userId.ToInt()))); }
public bool ContainsDept(int deptId) { return(GroupUtilities.Contains( context: Context, groupId: GroupId, dept: SiteInfo.Dept( tenantId: Context.TenantId, deptId: deptId))); }