Exemple #1
0
        public async Task <ActionResult> GetPlayerGroups()
        {
            var gamertag = User.GetGamerTag();
            var groups   = await _store.GetPlayersGroupsAsync(gamertag);

            return(Ok(GroupListResponseModel.FromGroups(groups)));
        }
Exemple #2
0
        public async Task <ActionResult> GetGroupsAsync()
        {
            // Call data store
            var groups = await _store.GetGroupsAsync();

            // Return result
            return(Ok(GroupListResponseModel.FromGroups(groups)));
        }
        public async Task <ActionResult> GetPlayerGroups(string gamerTag)
        {
            // Call data store
            var groups = await _store.GetPlayersGroupsAsync(gamerTag);

            // Return result
            return(Ok(GroupListResponseModel.FromGroups(groups)));
        }