title: return bool from asp.net mvc actionresult
body: <p>I submitted a form via jquery, but I need the <strong>ActionResult</strong> to return true or false.</p>
  
  <p>this is the code which for the controller method:</p>
  
  <pre><code>    [HttpPost]
      public ActionResult SetSchedule(FormCollection collection)
      {
          try
          {
              // TODO: Add update logic here
  
              return true; //cannot convert bool to actionresult
          }
          catch
          {
              return false; //cannot convert bool to actionresult
          }
      }
  </code></pre>
  
  <p>How would I design my JQuery call to pass that form data and also check if the return value is true or false. How do I edit the code above to return true or false?</p>