Exemplo n.º 1
0
        public async Task <IActionResult> GetTransactinDetail(GetTransactionDetailRequest request)
        {
            var response = new GetTransactionDetailResponse();

            try
            {
                response = await _accountQueries.GetTransactionDetail(request);
            }
            catch (Exception ex)
            {
                response.Code    = ErrorCode.GetError(ErrorCode.SystemError).Key;
                response.Message = ErrorCode.GetError(ErrorCode.SystemError).Value;

                Logger.Error($"Exception: {ex} , Method:GetTransactinDetail");
            }
            return(Ok(response));
        }