funcionalidad terminada

This commit is contained in:
2025-02-02 20:14:39 -03:00
parent 2a8ba5a9f4
commit e7747455ec
11 changed files with 352 additions and 15 deletions

View File

@@ -617,9 +617,16 @@ public class RepositorioPropiedades: RepositorioBase<RepositorioPropiedades> {
var props = con.Propiedades.Include(x=>x.IdServicios).Include(x=>x.IddivisaNavigation)
.Include(c=>c.IdtipropiedadNavigation)
.Where(x=>x.Idestado ==4).Skip(pag*10).Take(10);
.Where(x=>x.Idestado ==4 && !x.Venta.Any(x=>x.Idestado ==2))
.Skip(pag*10).Take(10);
return props;
}
public int ObtenerPaginasDePropiedadesEnVenta(){
var con = Context;
var props = con.Propiedades.Where(x=>x.Idestado ==4 && !x.Venta.Any(x=>x.Idestado ==2)).Count();
return (int)Math.Ceiling((double)props / 10);
}
public IQueryable<Propiedade> ObtenerPropiedadesAVentaPorDni(long dni) {
var con = Context;