public override async Task InitAsync() { IsBusy = true; _nicWritesService = ServiceContainer.Resolve <INicWritesService>(); await AddCategory("Articles", () => _nicWritesService.GetArticlesAsync()); await AddCategory("Play Scripts", () => _nicWritesService.GetScriptsAsync()); await AddCategory("Promotional Copy", () => _nicWritesService.GetPromoCopyAsync()); await AddCategory("Screenplays", () => _nicWritesService.GetScreenplaysAsync()); await AddCategory("Reviews", () => _nicWritesService.GetReviewsAsync()); await AddCategory("ShortStories", () => _nicWritesService.GetShortStoriesAsync()); await AddSocialMediaCategory(); IsBusy = false; }
public SocialMediaViewModel() { SocialPosts = new ObservableCollection <SocialPost>(); _nicWritesService = ServiceContainer.Resolve <INicWritesService>(); }