public async Task <IActionResult> UpdatePersonalWallet(UpdatePersonalWalletRequest request) { try { return(Ok(new Success(await Mediator.Send(request)))); } catch (Exception exception) { return(Ok(new InternalServerError(exception))); } }
public async Task <ApiResponse <UpdatePersonalWalletResponse> > UpdatePersonalWallet(UpdatePersonalWalletRequest request) { await SetHeader(); return(await _httpClient.PutJsonAsync <ApiResponse <UpdatePersonalWalletResponse> >(Constants.URI.Wallets.UpdatePersonalWallet, request)); }