private async Task saveBotAccessTokenData(ExchangeVerificationCodeResponseModel response) { var configurations = await _context.Configurations.FirstOrDefaultAsync(); configurations.BotAccessToken = response.bot.bot_access_token; configurations.BotUserId = response.bot.bot_user_id; await _context.SaveChangesAsync(); }
public async Task <ExchangeVerificationCodeResponseModel> ProcessVerificationCodeAsync(string code) { try { HttpRequestMessage request = prepareProcessVerificaztionCodeRequest(code); ExchangeVerificationCodeResponseModel response = await getPrepareProcessVerificationCodeResponseAsync(request); return(response); } catch (Exception) { throw; } }