Exemple #1
0
        public async Task <IActionResult> GetListAccount()
        {
            var response = new GetListAccountResponse();

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