Example #1
0
        public void Update()
        {
            Read();
            int id   = ConsoleUtilEntities.GetId();
            var user = ConsoleUtilUser.GetData();

            user.Id = id;
            repositoryUser.Update(user);
        }
Example #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);
        }
Example #3
0
 public void Read()
 {
     ConsoleUtilUser.Show(repositoryUser.GetAll());
 }