title: Display an error message under certain conditions (empty list)
body: <p>In my controller, I filter a list based on parameters that the user first choose. It's like a search engine.</p>
  
  <p>There is a possibility that the list may return 0 values. While this is not an error, I would like to display some kind of message, like an error message, but all I've found so far is using the ModelState or ModelStateDictionary in c# which also requires an exception. But this is no exception, just a condition, so I'm a bit puzzled.</p>
  
  <p>I will write out a bit of code so that you will visually see what I want:</p>
  
  <pre><code>    if(listOBJS.count == 0)
      {
          // DISPLAY THE ERROR!
          PopulateDDL1();
          PopulateDDL2();
          return View(listOBJS);
      }
  </code></pre>
  
  <p>Right, that about what I want to do. How could I proceed? Thanks for the advices.</p>