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