Example #1
0
        public async Task <Tuple <HttpStatusCode, Response <dynamic> > > GenerateTfsToken(TokenModel tokenMOdel, string userId)
        {
            Tuple <HttpStatusCode, VSTSMemberModel> result = await _dataRepository.generateTfsToken(tokenMOdel, userId);

            if (result.Item1 == HttpStatusCode.OK)
            {
                return(await _accountData.GenerateTokenForVSTAdmin(result.Item2));
            }
            return(new Tuple <HttpStatusCode, Response <dynamic> >(result.Item1, null));
        }