title: How to call another controller Action From a controller in Mvc
body: <p>I need to call a controller B action FileUploadMsgView  from Controller A and need to pass a parameter for it.</p>
  <p>Its not going to the controller B's <code>FileUploadMsgView()</code>.</p>
  <p>Here's the code:</p>
  <p>ControllerA:</p>
  <pre><code>private void Test()
  {
      try
      {   //some codes here
          ViewBag.FileUploadMsg = &quot;File uploaded successfully.&quot;;
          ViewBag.FileUploadFlag = &quot;2&quot;;
          RedirectToAction(&quot;B&quot;, &quot;FileUploadMsgView&quot;, new { FileUploadMsg = &quot;File   uploaded successfully&quot; });
      }
  }
  </code></pre>
  <p>ControllerB (receiving part):</p>
  <pre><code>public ActionResult FileUploadMsgView(string FileUploadMsg)
  {
      return View();
  }
  </code></pre>