Exemplo n.º 1
0
        protected void EliminarLinkButton_Click(object sender, EventArgs e)
        {
            ReporsitorioPrestamos rep       = new ReporsitorioPrestamos();
            Prestamos             prestamos = rep.Buscar(ToInt(PrestamosIdTextBox.Text));

            if (prestamos != null)
            {
                if (rep.Eliminar(ToInt(PrestamosIdTextBox.Text)))
                {
                    CallModal("Prestamo eliminado");
                    LimpiarCampos();
                }
                else
                {
                    CallModal("El prestamo no pudo ser eliminado");
                }
            }
        }