private void ExecuteOpenMapCommand(ArcGISPortalItem portalItem) { if (portalItem == null) { throw new Exception("ArcGIS Portal Item is null or not selected"); } (new NavigationService()).Navigate(App.MapPageName, portalItem); }