Пример #1
0
        public GroupViewModel(string groupName, string leagueTitle, IEnumerable <Result> results)
        {
            var groupItems = CreateGroupItemsFromResults(results);

            LeagueTitle = leagueTitle;
            Group       = groupName;
            Matchday    = ResultsService.GetMatchday(results);
            Standing    = groupItems;
        }
Пример #2
0
 public GroupViewModel(Group group)
 {
     if (group != null)
     {
         var groupItems = CreateGroupItemsFromResults(group.Results);
         LeagueTitle = group.LeagueTitle;
         Group       = group.Name;
         Matchday    = ResultsService.GetMatchday(group.Results);
         Standing    = groupItems;
     }
 }