예제 #1
0
        public async Task <ActionResult> GetAccountsAsync()
        {
            try
            {
                var accounts = await _accountQueries.GetAccountsAsync();

                _logger.LogInformation("GetAccountAsync");
                return(Ok(accounts));
            }
            catch
            {
                return(NotFound());
            }
        }