falta mirar en la base de datos si guardo el tipo de moneda
This commit is contained in:
@@ -31,7 +31,8 @@ public class RepositorioNotificaciones : RepositorioBase<RepositorioNotificacion
|
||||
var con = Context;
|
||||
|
||||
var notis = con.Notificaciones
|
||||
.Include(x=>x.IdpropiedadNavigation)
|
||||
.Include(x=>x.IdpropiedadNavigation)
|
||||
.Include(x=>x.DniclienteNavigation)
|
||||
.Include(x=>x.DniremitenteNavigation)
|
||||
.Where(x => x.Dnicliente == dni);
|
||||
return notis;
|
||||
@@ -39,7 +40,7 @@ public class RepositorioNotificaciones : RepositorioBase<RepositorioNotificacion
|
||||
|
||||
public bool HayNotis(long dni) {
|
||||
var con = Context;
|
||||
bool hay = con.Notificaciones.Where(x=>x.Leido == false).Any();
|
||||
bool hay = con.Notificaciones.Where(x=>x.Leido == false && x.Dnicliente == dni).Any();
|
||||
return hay;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user