Пример #1
0
        public async Task <HttpResponseMessage> Get(string userId, string code)
        {
            var accessToken = await OAuthUtility.GetAccessToken(userId, code);

            TableStorageService.InsertOrUpdate(accessToken);

            var response = new HttpResponseMessage(HttpStatusCode.Accepted)
            {
                Content = new StringContent("Thank you, you may now close this window.")
            };

            return(response);
        }