I have apartment entity and I want to get apartments based on my filters.

this is my search entity 

```
public class Search
{
    public bool isStudio {get;set;}

    public bool isNoPlanning {get;set;}

    public bool isMultiRoom {get;set;}

    public int[] NumberOfRooms {get;set;}
}

```

this is my current search logic.

```
var apartments = buildRepost.Get(buildId).Where(condStates => 
   (searchModel.NumberOfRooms != null 
     && searchModel.NumberOfRooms.Contains(condStates.RoomsCount.ToString()) 
   || ((searchModel.IsStudio && condStates.IsStudio)) 
   || ((searchModel.IsNoPlanning && condStates.IsFreePlaning)) 
   || ((searchModel.IsMultiRoom && condStates.RoomsCount >= 4)));

```

The problem with this logic is that I got the wrong result when all fields are false and `null`. For example when `isStudio`, `IsNoplaning` and `isMultiRoom` are false and `numberofRooms` is `null` I should have got all apartments but instead, I got an empty array. Any help?