este es el trabajo de hoy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user