public void Update() { Read(); int id = ConsoleUtilEntities.GetId(); var user = ConsoleUtilUser.GetData(); user.Id = id; repositoryUser.Update(user); }
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() { ConsoleUtilUser.Show(repositoryUser.GetAll()); }