/// <summary> /// Activities the report. /// </summary> /// <param name="reportPresenter">The report presenter.</param> private void ActivityReport(ReportPresenter reportPresenter) { IList<int> supervisorIds = null; if (!string.IsNullOrEmpty(reportPresenter.SelectedSupervisorIds)) { supervisorIds = reportPresenter.SelectedSupervisorIds.Split(',').Select(id => Convert.ToInt32(id, CultureInfo.CurrentCulture)).ToList(); } if (reportPresenter.ReportFilter.IsTeamViewOrProjectView) { reportPresenter.AssignActivityReportDeveloperList(this.timesheetReportService.RetrieveActivityReportByTeamView(reportPresenter.SelectedProjectIds, supervisorIds, reportPresenter.ReportFilter.DateFrom, reportPresenter.ReportFilter.DateTo, SessionData.Instance.UserInfo.Developer.DeveloperID).ToList()); } else { reportPresenter.AssignActivityReportProjectList(this.timesheetReportService.RetrieveActivityReportByProjectView(reportPresenter.SelectedProjectIds, supervisorIds, reportPresenter.ReportFilter.DateFrom, reportPresenter.ReportFilter.DateTo, SessionData.Instance.UserInfo.Developer.DeveloperID).ToList()); } }