public IEnumerable <Apartment> GetAllWithoutCondominium(string user) { return(_items.AsQueryable().Where(ApartmentQueries.GetAllWithoutCondominium(user))); }
public IEnumerable <Apartment> GetAllWithoutCondominium(string user) { return(_context.Apartments.AsNoTracking().Where(ApartmentQueries.GetAllWithoutCondominium(user))); }
public IEnumerable <Apartment> GetAll(string user) { return(_items.AsQueryable().Where(ApartmentQueries.GetAll(user))); }
public IEnumerable <Apartment> GetAll(string user) { return(_context.Apartments.Include(con => con.Condominium).Include(con => con.Residents).AsNoTracking().Where(ApartmentQueries.GetAll(user))); }