Пример #1
0
        public void AddAccessTo(Project project)
        {
            var permission = new UserProjectPermission {
                UserId = this.Id, Project = project
            };

            AccessibleProjects.Add(permission);
        }
Пример #2
0
        public void AddAccessFor(User user)
        {
            var permission = new UserProjectPermission {
                User = user, Project = this
            };

            UsersWithAccess.Add(permission);
        }
Пример #3
0
 public void RemoveAccessTo(UserProjectPermission permission)
 {
     AccessibleProjects.Remove(permission);
 }
Пример #4
0
 public void AddAccessTo(UserProjectPermission permission)
 {
     permission.UserId = this.Id;
     AccessibleProjects.Add(permission);
 }
Пример #5
0
 public void RemoveAccessFor(UserProjectPermission permission)
 {
     UsersWithAccess.Remove(permission);
 }
Пример #6
0
 public void AddAccessFor(UserProjectPermission permission)
 {
     permission.Project = this;
     UsersWithAccess.Add(permission);
 }