Пример #1
0
        public static List <Project> GetAllActiveProjectsAndProposalsWhereOrganizationIsStewardOrPrimaryContact(this Organization organization, Person currentPerson)
        {
            var allActiveProjectsAndProposals = organization.GetAllAssociatedProjectsForOrgVisibleToUser(currentPerson).GetActiveProjectsAndProposalsVisibleToUser(currentPerson);

            if (MultiTenantHelpers.HasCanStewardProjectsOrganizationRelationship())
            {
                return(allActiveProjectsAndProposals.Where(x => x.GetCanStewardProjectsOrganization() == organization).ToList());
            }

            return(allActiveProjectsAndProposals.Where(x => x.GetPrimaryContactOrganization() == organization).ToList());
        }
Пример #2
0
 public static List <Project> GetAllPendingProjects(this Organization organization, Person currentPerson)
 {
     return(organization.GetAllAssociatedProjectsForOrgVisibleToUser(currentPerson).GetPendingProjectsVisibleToUser(currentPerson));
 }
Пример #3
0
 public static List <Project> GetAllActiveProjectsAndProposals(this Organization organization, Person currentPerson)
 {
     return(organization.GetAllAssociatedProjectsForOrgVisibleToUser(currentPerson).GetActiveProjectsAndProposalsVisibleToUser(currentPerson));
 }