protected void AddTeamToProject(Project project, List <Guid> team) { foreach (var user in team.Select(r => ParticipantEngine.GetByID(r))) { ProjectEngine.AddToTeam(project, user, false); } }
protected void RestrictAccess(Guid userID, ProjectTeamSecurity projectTeamSecurity, bool visible) { SecurityContext.AuthenticateMe(Owner); ProjectEngine.SetTeamSecurity(Project, ParticipantEngine.GetByID(userID), projectTeamSecurity, visible); }