protected void btnAdd_OnClick(object sender, EventArgs e) { AddCustomerPresenter presenter = new AddCustomerPresenter(this); if (presenter.Create()) { Response.Redirect("ListCustomers.aspx?action=added", false); } }
private void btnSave_Click(object sender, EventArgs e) { base.InitWorkSpace(); AddCustomerPresenter presenter = new AddCustomerPresenter(this); if (presenter.Create()) { actionResult = "updated"; Hide(); } base.CloseWorkSpace(); }