示例#1
0
 public async Task <IActionResult> UpdatePersonalWallet(UpdatePersonalWalletRequest request)
 {
     try
     {
         return(Ok(new Success(await Mediator.Send(request))));
     }
     catch (Exception exception)
     {
         return(Ok(new InternalServerError(exception)));
     }
 }
示例#2
0
        public async Task <ApiResponse <UpdatePersonalWalletResponse> > UpdatePersonalWallet(UpdatePersonalWalletRequest request)
        {
            await SetHeader();

            return(await _httpClient.PutJsonAsync <ApiResponse <UpdatePersonalWalletResponse> >(Constants.URI.Wallets.UpdatePersonalWallet, request));
        }