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; }
partial void DeletePagosIntere(PagosIntere instance);
partial void UpdatePagosIntere(PagosIntere instance);
partial void InsertPagosIntere(PagosIntere instance);
private void detach_PagosInteres(PagosIntere entity) { this.SendPropertyChanging(); entity.Usuario = null; }
private void attach_PagosInteres(PagosIntere entity) { this.SendPropertyChanging(); entity.Boleta = this; }