public void LoadCommunities(dtoCommunitiesFilters filters) { Int32 idProfile = View.IdProfile; litePerson person = CurrentManager.GetLitePerson(View.IdProfile); dtoTreeCommunityNode tree = ServiceCommunity.GetGenericCommunitiesTree(filters, person); List <Int32> list = (from m in CurrentManager.GetIQ <LazySubscription>() where m.IdPerson == idProfile && m.DisplayMail == true && m.IdRole > 0 select m.IdCommunity).ToList(); View.LoadTree(tree, list); }
public void LoadCommunities(dtoCommunitiesFilters filters) { //if (person == null) //{ // View.DisplayProfileUnknown(); // View.HasAvailableCommunities = false; //} //else //{ // dtoCommunityNode tree = ServiceCommunity.GetFilteredCommunitiesTree(View.CurrentStatus, person); // View.HasAvailableCommunities = (tree.Nodes.Count > 0); // View.LoadTree(tree); //} dtoTreeCommunityNode tree = Service.GetFilteredCommunitiesTree(filters, CurrentManager.GetLitePerson(View.IdProfile)); View.HasAvailableCommunities = (tree.Nodes.Count > 0); View.LoadTree(tree); }