/// <summary> /// Assigns the project dashboard basic details. /// </summary> /// <param name="project">The project.</param> /// <param name="projectPortalId">The project portal id.</param> /// <param name="presenter">The presenter.</param> private void AssignProjectDashboardBasicDetails(Project project, int projectPortalId, ProjectDashboardPresenter presenter) { presenter.CompletedPercent = project.CompletedPercent.HasValue ? project.CompletedPercent.Value : 0; presenter.AssignProjectPortalInformation(this.projectService.RetrieveProjectPortalInfo(projectPortalId, SessionData.Instance.UserInfo.Developer.DeveloperID)); presenter.AssignStatusList(this.lookupService.RetrieveProjectStatusList(SessionData.Instance.UserInfo.Developer.DeveloperID)); presenter.AssignSupervisors(this.developerService.RetrieveManagers(null, false, SessionData.Instance.UserInfo.Developer.DeveloperID)); presenter.AssignRoleGroups(this.lookupService.RetrieveRoleGroups(SessionData.Instance.UserInfo.Developer.DeveloperID)); this.AssignProjectList(presenter); if (string.IsNullOrEmpty(presenter.SelectedSupervisorIds)) { presenter.Supervisors.ForEach(s => presenter.SelectedSupervisors.Add(s.DeveloperID)); presenter.SelectedSupervisorIds = string.Join(",", presenter.SelectedSupervisors.Select(s => s.ToString(CultureInfo.InvariantCulture)).ToList()); } }