title: How to pass multiple objects using RedirectToAction() in Asp.NET MVC?
body: <p>I would like to pass multiple objects using redirectToAction() method. Below is the actionresult i'm redirecting to.  </p>
  
  <pre><code>public ActionResult GetEmployees(Models.Department department, Models.Category category, Models.Role role)
          {  
  
  return View();
  }
  </code></pre>
  
  <p>I'd like to do something like the below</p>
  
  <pre><code>public ActionResult test()
  {
  Models.Department dep = new Models.Department();
  Models.Category cat.......etc
  
  return RedirectToAction("GetEmployees", dep, cat, role); }
  </code></pre>
  
  <p>Any help would be greatly appreciated - thanks</p>
  
  <p><strong>Updated</strong></p>
  
  <p>Can I use something like </p>
  
  <pre><code> Models.Department dep = new Models.Department() { DepId = employee.DepartmentId };
                      Models.Category cat = new Models.Category() { CatId = employee.JobCategoryId };
                      Models.Role title = new Models.Role() { RoleId = employee.JobTitleId };
  
              return RedirectToAction("GetEmployees", new { department = dep, category = cat, role = title });
  </code></pre>