/// <summary> /// Assigns the compliance detail. /// </summary> /// <param name="presenter">The presenter.</param> /// <param name="projectPortalId">The project portal identifier.</param> /// <param name="releaseTypeIds">The release type ids.</param> /// <param name="releaseStatusIds">The release status ids.</param> private void AssignComplianceDetail(ProjectDashboardPresenter presenter, int projectPortalId, string releaseTypeIds, string releaseStatusIds) { presenter.AssignReleaseTypes(this.lookupService.RetrieveReleaseTypes(SessionData.Instance.UserInfo.Developer.DeveloperID)); presenter.AssignArtifactStatus(this.lookupService.RetrieveArtifactStatusTypes(SessionData.Instance.UserInfo.Developer.DeveloperID)); if (!string.IsNullOrEmpty(releaseTypeIds)) { var selectedReleaseTypeIds = releaseTypeIds.Split(',').Select(s => Convert.ToInt32(s, CultureInfo.CurrentCulture)).ToList(); presenter.AssignSelectedReleaseTypes(presenter.ReleaseTypeList.Where(releaseType => selectedReleaseTypeIds.Contains(releaseType.ID)).ToList()); } else { presenter.AssignSelectedReleaseTypes(presenter.ReleaseTypeList.Where(r => r.ID == (byte)ReleaseType.UAT).ToList()); } if (!string.IsNullOrEmpty(releaseStatusIds)) { var selectedReleaseStatusIds = releaseStatusIds.Split(',').Select(s => Convert.ToInt32(s, CultureInfo.CurrentCulture)).ToList(); presenter.AssignSelectedArtifactsList(presenter.ProjectStatusList.Where(projectStatus => selectedReleaseStatusIds.Contains(projectStatus.ID)).ToList()); } else { presenter.AssignSelectedArtifactsList(presenter.ArtifactStatusList); } IList<int> releaseEnvironmentList = new List<int>(); releaseEnvironmentList.Add(UatReleaseType); releaseEnvironmentList.Add(InternalReleaseType); releaseEnvironmentList.Add(ProductionReleaseType); releaseEnvironmentList.Add(BetaReleaseType); var artifactList = this.projectArtifactService.RetrieveList(projectPortalId, releaseEnvironmentList, null, SessionData.Instance.UserInfo.Developer.DeveloperID); (from artifact in artifactList from artifactStatus in presenter.ArtifactStatusList where artifact.Status == artifactStatus.ID select MapProcessComplianceStatusTitle(artifactStatus, artifact)).ToList(); AssignProjectArtifactList(presenter, artifactList); AssignReleaseArtifactList(presenter, artifactList); }