protected void Button1_Click(object sender, EventArgs e) { var member = new Members(); string status = Request.QueryString["acceptanceStatus"]; string email = Request.QueryString["email"]; if (status == "Declined") { member.DeclineMembership(email, "Declined"); Response.Redirect("/Admin/ViewMembers"); } else if (status == "Accepted") { member.ConfirmMembership(email, "Accepted", Position.Text, Membership.Text); Response.Redirect("/Admin/ViewMembers"); } }