protected void btnInsertar_Click(object sender, EventArgs e) { try { Cliente cliente = new Cliente { Cedula = Convert.ToInt32(txtCedula.Text), Nombre = txtNombre.Text, Apellido = txtApellido.Text, Direccion = txtDireccion.Text, Telefono = Convert.ToInt32(txtTelefono.Text), }; ICliente clie = new MCliente(); clie.InsertarCliente(cliente); MostarMensaje("Cliente Insertado"); } catch (Exception) { MostarMensajeError("Ocurrio un error"); } }