/// <summary>
 /// Assigns the project portal sprint.
 /// </summary>
 /// <param name="presenter">The presenter.</param>
 /// <param name="projectPortalId">The project portal identifier.</param>
 private void AssignProjectPortalSprint(ProjectDashboardPresenter presenter, int projectPortalId)
 {
     presenter.AssignTaskStatusFilter(this.lookupService.RetrieveTaskStatusFilterList(SessionData.Instance.UserInfo.Developer.DeveloperID));
     presenter.AssignPriorityList(this.lookupService.RetrieveTaskPriorityList(SessionData.Instance.UserInfo.Developer.DeveloperID));
     presenter.AssignProjectPortalTaskSummary(this.taskService.RetrieveProjectPortalTaskSummary(projectPortalId, SessionData.Instance.UserInfo.Developer.DeveloperID));
     var statusValue = presenter.ProjectPortalTaskSummary.Where(item => item.Count > 0 && !item.Status.Equals(InProgress)).Count();
     presenter.TaskStatus = statusValue > 0 ? Convert.ToInt32(NewStatus) : InProgressStatus;
    
     var projectTaskDetails = this.RetrieveSortedTasks(projectPortalId, presenter.TaskStatus, null, null);
     presenter.AssignProjectPortalTask(projectTaskDetails);
     presenter.SelectedSortingOption = DefaultTaskSortingOptionId;
     presenter.AssignProjectPortalSprintInformation(this.projectService.RetrieveProjectPortalSprintInfo(projectPortalId, SessionData.Instance.UserInfo.Developer.DeveloperID));
     if (presenter.ProjectPortalSprintDetail != null)
     {
         presenter.AssignProjectPortalImpedimentList(this.projectService.RetrieveProjectPortalImpedimentInfo(presenter.ProjectPortalSprintDetail.SprintID, SessionData.Instance.UserInfo.Developer.DeveloperID));
         presenter.AssignProjectPortalFeatureList(this.projectService.RetrieveProjectPortalFeatureInfo(presenter.ProjectPortalSprintDetail.SprintID, SessionData.Instance.UserInfo.Developer.DeveloperID));
         presenter.AssignProjectPortalBurnDownInfo(this.projectService.RetrieveProjectPortalBurnDownInfo(presenter.ProjectPortalSprintDetail.SprintID, SessionData.Instance.UserInfo.Developer.DeveloperID, null));
     }
 }