title: How do I return true or false from my MVC to an jQuery Ajax?
body: <p>I have code that is part of an  $.ajax call to MVC. Two functions that I hope will get executed based on a true or false from my controller.</p>
  
  <pre><code>success: function () {
      $('#mark').html('&lt;span style='color: Green;'&gt;&amp;nbsp;&amp;nbsp;Correct&lt;/span&gt;');
  },
  error: function () {
      $('#mark').html('&lt;span style='color: Red;'&gt;&amp;nbsp;&amp;nbsp;Incorrect&lt;/span&gt;')
  }
  </code></pre>
  
  <p>But what should I return from the controller so I can call either the success or error? I didn't try Ajax before so can I just return</p>
  
  <pre><code>return(true) or 
  return(false)
  </code></pre>
  
  <p>In which case what would be the datatype I use for the return value in MVC?</p>