public void Update() { Read(); int id = ConsoleUtilEntities.GetId(); var account = ConsoleUtilAccount.GetData(); account.Id = id; repository.Update(account); }
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); }
public void Read() { ConsoleUtilAccount.Show(repository.GetAll()); }
public void Create() { repository.Add(ConsoleUtilAccount.GetData()); }