title: MVC - Pass ViewModel to View using c#
body: <p>I have a ViewModel as such:</p>
  
  <pre><code>public class EmployeeViewModel
  {
  
  
      Employees employee{ get; set; }
      Budget budget { get; set; }
  
  
  
  }
  </code></pre>
  
  <p>I like to pass this view model to a view that does a create that requires both of the tables.</p>
  
  <p>I tried doing the following in the controller that would pass information to the view but was not successful:</p>
  
  <pre><code>    EmployeeViewModel pvm = new EmployeeViewModel()
      return View(pvm);
  </code></pre>
  
  <p>The reason being is that the Value of both employee and budget it null. 
  How do I pass this information to the view so it knows about both of the tables? </p>