title: Pass viewbag to partial view from action controller
body: <p>I have a mvc view with a partial view.There is a ActionResult method in the controller which will return a PartialView. So, I need to pass ViewBag data from that ActionResult method to Partial View.</p>
  
  <p>This is my Controller</p>
  
  <pre><code>public class PropertyController : BaseController
  {
      public ActionResult Index()
      {
          return View();
      }
      public ActionResult Step1()
      {
          ViewBag.Hello = "Hello";
          return PartialView();
      }
  }
  </code></pre>
  
  <p>In Index.cshtml View</p>
  
  <pre><code>@Html.Partial("Step1")
  </code></pre>
  
  <p>Step1.cshtml partial view</p>
  
  <pre><code>@ViewBag.Hello
  </code></pre>
  
  <p>But this is not working. So, what is the correct way to get data from viewbag.
  I think I'm following wrong method. Please guide me.</p>