示例#1
0
        public async Task <IActionResult> GetAllMonitoredAsync()
        {
            try
            {
                var response = await _transactionsService.GetNotExpiredAsync();

                return(Ok(Mapper.Map <List <TransactionStateResponse> >(response)));
            }
            catch (Exception ex)
            {
                await _log.WriteErrorAsync(nameof(TransactionsController), nameof(GetAllMonitoredAsync), ex);

                throw;
            }
        }
        public async Task <IActionResult> GetAllMonitoredAsync()
        {
            var response = await _transactionsService.GetNotExpiredAsync();

            return(Ok(Mapper.Map <List <TransactionStateResponse> >(response)));
        }