예제 #1
0
        private void btn_baja_direccion_Click(object sender, EventArgs e)
        {
            var direccion = grillaDireccion.SelectedRows[0].DataBoundItem as Direccion;

            if (direccion == null)
            {
                MessageBox.Show(this, "Error", "No se selecciono dirección a eliminar");
                return;
            }
            direccionRepository.Delete(direccion);
            LimpiarCampos();
            RefrescarGrillaDireccion();
        }
예제 #2
0
 public bool Delete(int id)
 {
     return(calle_rep.Delete(id));
 }
예제 #3
0
 public void Delete(Direccion entity)
 {
     direccionRepository.Delete(entity);
 }