public void AddAccessTo(Project project) { var permission = new UserProjectPermission { UserId = this.Id, Project = project }; AccessibleProjects.Add(permission); }
public void AddAccessFor(User user) { var permission = new UserProjectPermission { User = user, Project = this }; UsersWithAccess.Add(permission); }
public void RemoveAccessTo(UserProjectPermission permission) { AccessibleProjects.Remove(permission); }
public void AddAccessTo(UserProjectPermission permission) { permission.UserId = this.Id; AccessibleProjects.Add(permission); }
public void RemoveAccessFor(UserProjectPermission permission) { UsersWithAccess.Remove(permission); }
public void AddAccessFor(UserProjectPermission permission) { permission.Project = this; UsersWithAccess.Add(permission); }