title: Is there a better way to implement the “Any” or “All” for my Search
body: <p>I have the following action method that builds a drop down list which is used for searching records that have a specific country. In addition to showing a list of all countries, I have added a static value named –Any— which will return all the records regardless of their country, as shown below:</p>
  
  <pre><code>public PartialViewResult ManageVisitSearch()
          {   var CountryList = repository.FindAllCountry().ToList();
              CountryList.Insert(0, new Country { Description = "--Any--", CountryID = 0 });
  //code goes here
          ViewBag.CountryID = new SelectList(CountryList, "CountryID", "Description", 0);
          return PartialView("_ManageVisitSearch"); }
  </code></pre>
  
  <p>On the repository method which will perform the search, I did the following to return all the records in case the –Any— was selected from the dropdown lists:</p>
  
  <pre><code>    public IEnumerable&lt;VisitSearch&gt; visitsearch(DateTime? datefrom, DateTime? dateto, int countryid, int genderid)
              {
   var vs = (from v in entities.Visits  where 
  (v.Patient.NationalityID == countryid || countryid == 0) 
  
  //code goes here
  </code></pre>
  
  <p>The above approach is working fine with me, but I think that it might not be the best approach to follow. Is there a more rational approach to follow to add the –Any— to my search dropdown lists, or does my approach sound good?</p>