private void CancelarPagoInteres()
        {
            PagosIntere entity = _entidades.PagosInteres.First(pi => pi.Clave == Convert.ToInt32(grvDatos.GetFocusedRowCellDisplayText("Clave")));

            //mapeoCasaEmpenios.PagosInteresDC.DeleteOnSubmit(entity);
            entity.Estado = false;
            _entidades.SubmitChanges();
            Insertarcancelacion("PagoInteres", grvDatos.GetFocusedRowCellDisplayText("Clave"));
        }
 public int AgregarPagoInteres(PagosIntere intere)
 {
     if (intere.FolioBoleta == string.Empty)
     {
         throw new ValidationException("Selecione la boleta a Abonar");
     }
     if (intere.Interes == 0)
     {
         throw new ValidationException("El Monto a pagar no puede ser cero");
     }
     _entidades.PagosInteres.InsertOnSubmit(intere);
     _entidades.SubmitChanges();
     return(intere.Clave);
 }