title: mvc3 not all code path returns a value
body: <p>Thanks for reading this.</p>
  
  <p>When compiling got this error: </p>
  
  <p>'ASP.Helpers.Message.DisplayMessage(string, string)': not all code path returns a value</p>
  
  <p>I have a helper class in App_Code\Helpers\Message.cshtml and this is the content so far:</p>
  
  <pre><code>@functions{
   public static string DislayMessage(string x, string y)
    {
      IF ((x == "yes") &amp;&amp; (y == "yes"))
       {
         return ("something");
       }
    }
  }
  </code></pre>
  
  <p>in another page it's being called like this:</p>
  
  <pre><code>@{Helpers.Message.DisplayMessage("yes", "yes")}
  </code></pre>
  
  <p>Any ideas?</p>