Пример #1
0
        public static async Task <ApiResponse> WalletLock()
        {
            ApiResponse response = new ApiResponse();

            try
            {
                WalletManagement management = new WalletManagement();
                await management.WalletLock();
            }
            catch (ApiCustomException ex)
            {
                Logger.Singleton.Error(ex.Message);
                response.Error = new ApiError(ex.ErrorCode, ex.Message);
            }
            catch (Exception ex)
            {
                Logger.Singleton.Error(ex.Message);
                response.Error = new ApiError(ex.HResult, ex.Message);
            }
            return(response);
        }
Пример #2
0
 public async Task WalletLock()
 {
     WalletManagement management = new WalletManagement();
     await management.WalletLock();
 }