feat: implementado todo lo de auditoria tocaria testearlo nomás

This commit is contained in:
2025-01-27 20:13:15 -03:00
parent 7b1e70999f
commit 17fae0e777
20 changed files with 204 additions and 115 deletions
+11
View File
@@ -0,0 +1,11 @@
using Entidades;
namespace Modelo.Facade;
public class PersistenciaLog {
private AlquilaFacilContext _context {get{return new AlquilaFacilContext();}}
public void GuardarLog(Log log, IEnumerable<LogDetalle> detalles) {
var con = _context;
con.Logs.Add(log);
con.LogDetalles.AddRange(detalles);
con.SaveChanges();
}
}