/// <summary> /// Load ViewModel items asynchronous /// </summary> public async Task LoadDataAsync(bool forceRefresh = false) { var loadTasks = new Task[] { AboutModel.LoadItemsAsync(forceRefresh), PrabathsBlogModel.LoadItemsAsync(forceRefresh), JaliyasBlogModel.LoadItemsAsync(forceRefresh), ChamindasBlogModel.LoadItemsAsync(forceRefresh), MalinsBlogModel.LoadItemsAsync(forceRefresh), }; await Task.WhenAll(loadTasks); }
/// <summary> /// Load ViewModel items asynchronous /// </summary> public async Task LoadDataAsync(bool forceRefresh = false) { var loadTasks = new Task[] { AboutModel.LoadItemsAsync(forceRefresh), OnlineLecturesModel.LoadItemsAsync(forceRefresh), FreeBooksModel.LoadItemsAsync(forceRefresh), EngineeringToolsModel.LoadItemsAsync(forceRefresh), EngineeringMythsModel.LoadItemsAsync(forceRefresh), EngineersMemeModel.LoadItemsAsync(forceRefresh), }; await Task.WhenAll(loadTasks); }