funcionalidad terminada
This commit is contained in:
@@ -46,4 +46,10 @@ public class RepositorioNotificaciones : RepositorioBase<RepositorioNotificacion
|
||||
bool hay = con.Notificaciones.Where(x=>x.Leido == false && x.Dnicliente == dni).Any();
|
||||
return hay;
|
||||
}
|
||||
|
||||
public Notificacione? ObtenerNotificacionPorKeys(long dni, DateTime? fecha) {
|
||||
var con = Context;
|
||||
var n = con.Notificaciones.FirstOrDefault(x => x.Dnicliente ==dni && x.Fecha == fecha);
|
||||
return n;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user