title: Asp.Net MVC 5 How to send ViewBag to Partial View
body: <p>I have a _LoginPartial View and want to send data to it by ViewBag, but the Controller that I'am sending data from, doesn't have a View.</p>
  
  <pre><code>public PartialViewResult Index()
      {
          ViewBag.sth = // some data
          return PartialView("~/Views/Shared/_LoginPartial.cshtml");
      }
  </code></pre>
  
  <p>This code didn't work for me.</p>