public async Task<List<OnlineProgramHeader>> GetPrograms(int offset, int count, string category, CancellationToken cancellationToken, string additionalSearchText = null)
{
List<OnlineProgramHeader> header;
try
{
header = await ServiceLocator.WebCommunicationService.
LoadOnlinePrograms(category, offset, count,
cancellationToken, additionalSearchText);
InternetAvailable = true;
}
catch (Exception)
{
//There was probably no working internet connection
InternetAvailable = false;
header = new List<OnlineProgramHeader>();
}
return header;
}