private void GetNoName() { Do(() => { List <Site> websites; if (string.IsNullOrEmpty(Slot)) { websites = WebsitesClient.ListWebsites(); } else { websites = WebsitesClient.ListWebsites(Slot); } Cache.SaveSites(CurrentSubscription.SubscriptionId, new Sites(websites)); WriteWebsites(websites); }); }
private void GetNoName() { Do(() => { List <Site> websites; if (string.IsNullOrEmpty(Slot)) { websites = WebsitesClient.ListWebsites(); } else { websites = WebsitesClient.ListWebsites(Slot); } Cache.SaveSites(Profile.Context.Subscription.Id.ToString(), new Sites(websites)); WriteWebsites(websites); }); }