private async Task GetChannels() { var channels = await _channels.Get(); if (channels == null) { return; } ChannelList = new ObservableCollection <ChannelModel>(channels); _currentState.Channels = channels; }
private async Task GetChannel() { var ch = await _apiChannels.Get(); ch.ForEach(c => Channels.Add(c.Name)); }