title: using function in ternary operator .net MVC4
body: <p>I am puzzled with using function in ternary operator in MVC4.</p>
  
  <p>Here is what I have condition-</p>
  
  <pre><code>@(Session["LanguageCode"]!=null? GetLanguage(Users):"Users")
  </code></pre>
  
  <p>where <code>Session["LanguageCode"]</code> is language code coming through session.</p>
  
  <p>I want to get word's meaning  through ajax call if this works-</p>
  
  <pre><code>&lt;script&gt;
  function GetLanguage(Users){
  //some ajax call on method.
  }
  &lt;/script&gt;
  </code></pre>