public async Task <JsonResult> WithdrawBitcoin(WithdrawBitcoin withdrawBitcoin, string tenantUid) { var origin = TenantHelper.GetCurrentTenantUrl(contentService, tenantUid); var token = Request.Cookies["token"].Value; var response = (WithdrawResponseContent)await _transactionService.WithdrawBitcoin(tenantUid, token, origin, withdrawBitcoin); return(Json(response)); }
public async Task <IResponseContent> WithdrawBitcoin(string tenantUid, string token, string origin, WithdrawBitcoin withdrawBitcoin) { var response = await SubmitPostAsync(URL_API_WITHDRAW, origin, withdrawBitcoin, token, tenantUid); var responseContent = AssertResponseContent <WithdrawResponseContent>(response); return(responseContent); }