/// <summary> /// if the date selected is todays date then load the live matches and add to the matches already played /// </summary> private async void CheckDate() { try { var todaysDate = DateTime.Parse(DateTime.Now.ToString().Split(' ')[0]); MatchList = (DateSelected == todaysDate) ? await repository.LoadLive() : new List <Match>(); MatchList = (PastMatchList?.Count != 0) ? MatchList.Concat(PastMatchList).ToList() : MatchList; CreateGroupedList(); } catch (Exception ex) { errorHandler.CheckErrorMessage(ex); } }