avance: estado pre implementacion de notificaciones

This commit is contained in:
2025-01-06 21:22:58 -03:00
parent 5b3e65db2f
commit ed0d83dafe
14 changed files with 294 additions and 8 deletions
+8
View File
@@ -177,4 +177,12 @@ public class RepositorioUsuarios: RepositorioBase<RepositorioUsuarios> {
Cliente? cli = con.Clientes.FirstOrDefault(x=>x.Dni == dni);
return cli;
}
public Cliente? ObtenerClientePorToken(string token) {
var con = Context;
Cliente? cli = con.Clientes.Include(x=>x.NotificacioneDniclienteNavigations).FirstOrDefault(x=>x.Token == token);
if (cli == null|| cli.Dni == 0) return null;
return cli;
}
}