/// <summary> /// Load ViewModel items asynchronous /// </summary> public async Task LoadData(bool isNetworkAvailable) { var loadTasks = new Task[] { TimesOfIndiaModel.LoadItems(isNetworkAvailable), TheHinduModel.LoadItems(isNetworkAvailable), HindustanTimesModel.LoadItems(isNetworkAvailable), }; await Task.WhenAll(loadTasks); }
/// <summary> /// Load ViewModel items asynchronous /// </summary> public async Task LoadData(bool isNetworkAvailable) { var loadTasks = new Task[] { NdtvModel.LoadItems(isNetworkAvailable), TimesOfIndiaModel.LoadItems(isNetworkAvailable), IndiaTodayModel.LoadItems(isNetworkAvailable), SifySportsModel.LoadItems(isNetworkAvailable), TheHinduModel.LoadItems(isNetworkAvailable), IbnLiveModel.LoadItems(isNetworkAvailable), }; await Task.WhenAll(loadTasks); }