Exemplo n.º 1
0
        public async Task <IActionResult> GetBalance(GetBalanceRequest request)
        {
            var response = new GetBalanceResponse();

            try
            {
                response = await _accountQueries.GetBalance(request);
            }
            catch (Exception ex)
            {
                response.Code    = ErrorCode.GetError(ErrorCode.SystemError).Key;
                response.Message = ErrorCode.GetError(ErrorCode.SystemError).Value;
                Logger.Error($"Exception: {ex} , Method:GetBalance");
            }
            return(Ok(response));
        }