This commit is contained in:
2025-01-30 23:27:47 -03:00
parent b98cf77807
commit 68745cab5e
9 changed files with 660 additions and 6 deletions

View File

@@ -27,7 +27,13 @@ public class RepositorioCanons: RepositorioBase<RepositorioCanons> {
return cc;
}
public bool SetRecibo(Canon c, Recibo re, long dni) {
public Canon? ObtenerCanonPorId(long id){
var con = Context;
var cnn = con.Canons.FirstOrDefault(x=>x.Id == id);
return cnn;
}
public bool SetRecibo(Canon c, Recibo re, long dni, string mensaje= "Set Recibo") {
var con = Context;
var cc = con.Canons
.Include(x=>x.Idcontratos)
@@ -51,7 +57,7 @@ public class RepositorioCanons: RepositorioBase<RepositorioCanons> {
ccc.IdpropiedadNavigation.Idestado = 3;
}
GenerarLog(con, dni, $"Set Recibo");
GenerarLog(con, dni, mensaje);
return Guardar(con);
}