este es el trabajo de hoy

This commit is contained in:
2025-02-01 02:29:34 -03:00
parent c0bc97fb64
commit af231344b6
11 changed files with 240 additions and 5 deletions

View File

@@ -611,4 +611,13 @@ public class RepositorioPropiedades: RepositorioBase<RepositorioPropiedades> {
return (int)Math.Ceiling((double)totalRegistros / registrosPorPagina);
}
public IQueryable<Propiedade>? ObtenerPropiedadesEnVenta(int pag){
var con = Context;
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);
return props;
}
}