Beispiel #1
0
        public void Update()
        {
            Read();
            int id      = ConsoleUtilEntities.GetId();
            var account = ConsoleUtilAccount.GetData();

            account.Id = id;
            repository.Update(account);
        }
Beispiel #2
0
        public void Create()
        {
            var account = ConsoleUtilAccount.GetData();

            repositoryAccount.Add(account);
            Account lastInsertAccount = repositoryAccount.GetByLogin(account.Login);
            var     user = ConsoleUtilUser.GetData();

            user.Account = lastInsertAccount;
            repositoryUser.Add(user);
        }
Beispiel #3
0
 public void Read()
 {
     ConsoleUtilAccount.Show(repository.GetAll());
 }
Beispiel #4
0
 public void Create()
 {
     repository.Add(ConsoleUtilAccount.GetData());
 }