public ActionResult RetrieveTaskList(ProjectDashboardPresenter presenter, string statusType, string projectPortalId, string sortOnValue, string sortDirection)
        {
            ModelState.Clear();
            if (presenter != null)
            {
                var projectId = Convert.ToInt32(projectPortalId, CultureInfo.CurrentCulture);
                presenter.ProjectId = projectId;
                presenter.TaskStatus = Convert.ToInt32(statusType, CultureInfo.CurrentCulture);
                presenter.SortOnValue = sortOnValue;
                presenter.SortDirection = sortDirection;
                presenter.AssignTaskStatusFilter(this.lookupService.RetrieveTaskStatusFilterList(SessionData.Instance.UserInfo.Developer.DeveloperID));
                presenter.AssignPriorityList(this.lookupService.RetrieveTaskPriorityList(SessionData.Instance.UserInfo.Developer.DeveloperID));
                var taskDetails = this.RetrieveSortedTasks(projectId, presenter.TaskStatus, sortOnValue, sortDirection);
                presenter.AssignProjectPortalTask(taskDetails);
            }

            return this.PartialView(ProjectTaskContainerPartialView, presenter);
        }
 /// <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));
     }
 }