Exemplo n.º 1
0
        static void ShowUsers()
        {
            BankAppUserManager manager = new BankAppUserManager();

            var users = manager.GetAllUsers();

            foreach (var user in users)
            {
                Console.WriteLine($"{user.Username} {user.EntityId}");
            }
        }
Exemplo n.º 2
0
        static void CreateUser()
        {
            BankAppUserManager manager = new BankAppUserManager();

            Console.Write("Enter Username: ");

            var username = Console.ReadLine();

            var bankAppUser = new BankAppUser()
            {
                Username = username
            };

            manager.CreateUser(bankAppUser);
        }
Exemplo n.º 3
0
 public BankAppUserController(BankAppUserManager manager)
 {
     _manager = manager;
 }