title: Return view after ajax post to controller
body: <p>I'm sending some json data with ajax by post</p>
  
  <pre><code>function SendF() {
  
  $.ajax({
      url: '@Url.Action("Summary")',
      type: 'POST',
      data: JSON.stringify(flags),
      contentType: "application/json;charset=utf-8",
      success: function() {
  
      },
      error: function() {
          alert("Oops! We've experienced a connection problem!");
      }
  });
  }
  </code></pre>
  
  <p>to my controller</p>
  
  <pre><code> [HttpPost]
          public ActionResult Summary(List&lt;string&gt; flagsChecked)
          {
  
               [...]
  
                  return View(flags);
          }
  </code></pre>
  
  <p>and tried returning a view with data I've processed, but I guess it's not gonna happen since ajax is all about asynchronous http requests. How do I change my code to be synchronous?</p>