/// <summary>
 /// Retrieves the team allocations.
 /// </summary>
 /// <param name="presenter">The presenter.</param>
 /// <param name="fromDate">From date</param>
 /// <param name="toDate"> To  date</param>
 /// <param name="tab">The type of tab</param>
 private void RetrieveTeamAllocations(TeamDashboardPresenter presenter, DateTime? fromDate, DateTime? toDate, TeamViewType tab)
 {
     if (tab == TeamViewType.Team)
     {
         var teamAllocations = this.teamEngagementService.RetrieveDeveloperList(new List<int>() { presenter.TeamMember.DeveloperID }, null, fromDate, toDate, SessionData.Instance.UserInfo.Developer.DeveloperID);
         presenter.AssignTeamAllocationList(teamAllocations.Where(team => team.DeveloperID != presenter.TeamMember.DeveloperID).ToList());
         presenter.TotalAllocationHours = presenter.TeamAllocationList.Count > 0 ? (from a in presenter.TeamAllocationList select a.AllocatedHours).Sum() : 0;
     }
     else
     {
         presenter.AssignTeamAllocations(this.teamEngagementService.RetrieveDeveloperProjectList(presenter.TeamMember.DeveloperID, null, fromDate, toDate));
         presenter.TotalAllocationHours = presenter.TeamAllocations.Count > 0 ? (from a in presenter.TeamAllocations select a.AllocatedHours).Sum() : 0;
     }
 }