protected void uxEnroll_Click(object sender, EventArgs e) { if (Session["CustomerID"] == null) { return; } var CustomerID = Session["CustomerID"].ToString(); var LeaseToDB = new LeaseDTO { SlipID = uxSlips.SelectedValue, CustomerID = CustomerID, }; //pass the dto object to the service to enroll MarinaManager.EnrollService(LeaseToDB); }