// metoda utilizata pentru crearea unui cont de utilizator public override void CreateAccount() { // se citesc de la tastatura valori pentru fiecare proprietate din User si se valideaza StandardMessages.FirstName(); string firstName = GetUserValue(UserCommand.Read()); StandardMessages.LastName(); string lastName = GetUserValue(UserCommand.Read()); StandardMessages.Email(); string email = GetUserEmail(UserCommand.Read()); StandardMessages.Password(); string password = GetUserValue(UserCommand.Read()); StandardMessages.BirthDate(); DateTime birthDate = GetUserBirthDate(UserCommand.Read()); // este adaugat un user nou in lista AllUsers AllUsers.Add(Factory.CreateUser(userId++, birthDate, firstName, lastName, email, password)); }