title: CAN'T HIDE THE NAV ITEMS FROM THE FRONT-END UMBRACO-8
body: <p>The  code below has been written in MVC5 controller. It throws an error 
  "Object does not contain definition of Where". The "IsToShow" is DocumentType
  having a control "true/false" and this is used on every Document Type as a composition and its value is set on content template like UmbracoNaviHide.</p>
  
  <pre><code>public List&lt;NavigationList&gt; GetSubNavigationList()
   { 
       IPublishedContent page = Umbraco.Content(pageId); 
       var subPages = page.Children.Where("IsToShow");//Error Line 
   }
  </code></pre>