funcionalidad terminada
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user