Ejemplo n.º 1
0
        public async Task <IActionResult> GetNotExpiredWallets()
        {
            try
            {
                IEnumerable <IWalletState> wallets = await _walletManager.GetNotExpiredStateAsync();

                return(Ok(Mapper.Map <IEnumerable <WalletStateResponse> >(wallets)));
            }
            catch (Exception ex)
            {
                await _log.WriteErrorAsync(nameof(WalletsController), nameof(GetNotExpiredWallets), ex);

                throw;
            }
        }
        public async Task <IActionResult> GetNotExpiredWallets()
        {
            IEnumerable <IWalletState> wallets = await _walletManager.GetNotExpiredStateAsync();

            return(Ok(Mapper.Map <IEnumerable <WalletStateResponse> >(wallets)));
        }