//Delete wallet public async Task <WalletResponse> DeleteWalletItem(DeleteWalletRequest req) { string jsonRequest = CommonService.JsonSerializer <DeleteWalletRequest>(req); string jsonResponse = await PostRequest(jsonRequest, "deletewalletitem", req.WalletID); return(CommonService.JsonDeSerializer <WalletResponse>(jsonResponse)); }
public async Task <ApiResponse <DeleteWalletResponse> > DeleteWallet(DeleteWalletRequest request) { await SetHeader(); var deleteWalletResponse = await _httpClient.PostJsonAsync <ApiResponse <DeleteWalletResponse> >(Constants.URI.Wallets.DeleteWallet, request); return(deleteWalletResponse); }
public override async Task <EmptyResponse> DeleteWallet(DeleteWalletRequest request, ServerCallContext context) { var key = new DepositWalletKey( request.WalletKey.BlockchainAssetId, request.WalletKey.BlockchainId, request.WalletKey.WalletAddress); await _walletService.DeleteWalletAsync(key); return(new EmptyResponse()); }
public async Task <IActionResult> DeleteWallet(DeleteWalletRequest request) { try { return(Ok(new Success(await Mediator.Send(request)))); } catch (Exception exception) { return(Ok(new InternalServerError(exception))); } }
public async Task <JsonResult> Delete([FromBody] DeleteWalletRequest request) { var result = await WalletServiceWrapper.DeleteWallet(InjectAuthorization(request)); return(new JsonResult(result)); }
public async Task <CmdResponse> DeleteWallet(DeleteWalletRequest request) { var result = await SendAsync <DeleteWalletRequest, CmdResponse>("DeleteWallet", request); return(result.Adapt <CmdResponse>()); }