title: Return RedirectToAction in MVC using async & await
body: <p>I want to return an action using Async and await functionality in dot net 4.5.
  I have used the following code. </p>
  
  <pre><code>public async Task&lt;ActionResult&gt; DisplayDashboard()
      {
          await Task.Run(() =&gt;
          {
              if (true)
              {
                  return RedirectToAction("Index", "Home");
              }
              else
              {
                  return RedirectToAction("Error", "Home");
              }
          });            
      }
  </code></pre>
  
  <p>Its giving following error,
  "Cannot convert lambda expression to delegate type 'System.Action' because some of the return types in the block are not implicitly convertible to the delegate return type".</p>
  
  <p>Can anybody please suggest me how to perform RedirectToAction using Task.</p>