Beispiel #1
0
        public IActionResult GetBankUsers()
        {
            return(Gatekeeper(() =>
            {
                var allUsers = _manager.GetAllUsers();

                return Ok(allUsers);
            }));
        }
Beispiel #2
0
        static void ShowUsers()
        {
            BankAppUserManager manager = new BankAppUserManager();

            var users = manager.GetAllUsers();

            foreach (var user in users)
            {
                Console.WriteLine($"{user.Username} {user.EntityId}");
            }
        }