Пример #1
0
        public async Task <IEnumerable <GroupViewModel> > GetAllGroups(string game)
        {
            CoreEngine core = new CoreEngine();

            var result = await core.GetGameGroupsAsync(_repo, TestingSettings.DEFAULT_GAME);

            IEnumerable <GroupViewModel> groups = from res in result
                                                  select new GroupViewModel
            {
                Name  = res.Name,
                Owner = res.Owner,
                Game  = res.Game
            };

            return(groups);
        }