Ejemplo n.º 1
0
        public Account CreateAccount(string login, string password, string role)
        {
            var newAccount = new Account(login, password, role)
            {
                Login = login, Password = password, Role = role
            };

            accountStorage.AddAccount(newAccount);
            return(newAccount);
        }