protected void btnRegister_Click(object sender, EventArgs e) { MarinaManager manager = new MarinaManager(); Customer cust; cust = new Customer { FirstName = txtRegFName.Text, LastName = txtRegLName.Text, Phone = txtRegPhone.Text, City = txtRegCity.Text }; if (!manager.RegisterUser(cust)) { lblError.Visible = true; } else { lblError.Visible = false; } }