implementado hasta el ultimo paso antes de hacer la tercera notificacion

This commit is contained in:
2025-01-08 02:53:31 -03:00
parent 9993e427e0
commit cf07c51eb1
18 changed files with 482 additions and 43 deletions

View File

@@ -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;
}
}