Beispiel #1
0
        private void BeginRebindSite()
        {
            Globals.IsBusy = true;
            if (this.UserRoleAuths == null || this.UserRoleAuths.Count(i => !i.SiteGroupId.HasValue) > 0)
            {
                DataServiceHelper.ListSiteAsync(Globals.UserLogin.UserOrganisationId, null, true, true, ListSiteCompleted);
            }
            else
            {
                int siteGroupId = this.UserRoleAuths.First(i => i.SiteGroupId.HasValue).SiteGroupId.Value;
                DataServiceHelper.ListSiteBySiteGroupAsync(siteGroupId, true, true, ListSiteCompleted);
            }


            //DataServiceHelper.ListSiteAsync(Globals.UserLogin.UserOrganisationId, null, true, true, ListSiteCompleted);
        }