termine lo que corresponde a logear los contratos
This commit is contained in:
@@ -4,6 +4,7 @@ using Entidades.Dto;
|
||||
using Entidades;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Collections.Concurrent;
|
||||
using Org.BouncyCastle.Math.EC.Rfc7748;
|
||||
|
||||
namespace Modelo;
|
||||
|
||||
@@ -35,4 +36,10 @@ public class RepositorioNotificaciones : RepositorioBase<RepositorioNotificacion
|
||||
.Where(x => x.Dnicliente == dni);
|
||||
return notis;
|
||||
}
|
||||
|
||||
public bool HayNotis(long dni) {
|
||||
var con = Context;
|
||||
bool hay = con.Notificaciones.Where(x=>x.Leido == false).Any();
|
||||
return hay;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user