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