public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell("TeamMatchCell", indexPath);

            var match = MatchesByLeague.ElementAt(indexPath.Section).ElementAt(indexPath.Row);

            (cell.ViewWithTag(200) as UILabel).Text = match.Date.ToString();

            if (Team.Id == match.HomeTeamId)
            {
                (cell.ViewWithTag(201) as UILabel).Text = Team.Name;
                (cell.ViewWithTag(203) as UILabel).Text = AppDelegate.SharedAppDelegate.UoW.TeamRepo.GetTeamById(match.AwayTeamId).Name;
            }
            else
            {
                (cell.ViewWithTag(203) as UILabel).Text = Team.Name;
                (cell.ViewWithTag(201) as UILabel).Text = AppDelegate.SharedAppDelegate.UoW.TeamRepo.GetTeamById(match.HomeTeamId).Name;
            }

            (cell.ViewWithTag(202) as UILabel).Text = match.ScoreH.ToString();
            (cell.ViewWithTag(204) as UILabel).Text = match.ScoreA.ToString();

            return(cell);
        }
 public override nint RowsInSection(UITableView tableView, nint section)
 {
     return(MatchesByLeague.ElementAt(Convert.ToInt16(section)).Count);
 }
 public override string TitleForHeader(UITableView tableView, nint section)
 {
     return(AppDelegate.SharedAppDelegate.UoW.LeagueRepo.GetLeagueById(MatchesByLeague.ElementAt(Convert.ToInt16(section)).First().LeagueId).Name);
 }