implementado hasta el ultimo paso antes de hacer la tercera notificacion
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Text;
|
||||
using Entidades.Dto;
|
||||
using Entidades;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Collections.Concurrent;
|
||||
|
||||
namespace Modelo;
|
||||
|
||||
@@ -20,7 +21,18 @@ public class RepositorioNotificaciones : RepositorioBase<RepositorioNotificacion
|
||||
|
||||
public bool AltaNotificacion(Notificacione n) {
|
||||
var con = Context;
|
||||
|
||||
con.Notificaciones.Add(n);
|
||||
return Guardar(con);
|
||||
}
|
||||
|
||||
public IQueryable<Notificacione> ObtenerNotificacionesDeUsuario(long dni) {
|
||||
var con = Context;
|
||||
|
||||
var notis = con.Notificaciones
|
||||
.Include(x=>x.IdpropiedadNavigation)
|
||||
.Include(x=>x.DniremitenteNavigation)
|
||||
.Where(x => x.Dnicliente == dni);
|
||||
return notis;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user