private void Show() { using (IContext context = CreateContext()) { IEntityRepository entityRepository = CreateRepository(context); var presenter = new SetTextPresenter(entityRepository); _viewModel = presenter.Show(); } }
public override string Load(Dictionary <string, string> parameters) { using (IContext context = PersistenceHelper.CreateContext()) { IEntityRepository entityRepository = PersistenceHelper.CreateRepository <IEntityRepository>(context); SetTextPresenter presenter = new SetTextPresenter(entityRepository); Model = presenter.Show(); } return(ViewPerspective.Default); }