title: Post form to other controller
body: <p>I have one HomeController that is for landing page (home,about,contact us) and in home view I have registration of two types(2 separate viewmodels) and login (another viewmodel).I would like to know if there is a way to post form from index view ( HomeController ) to another controller.I'm trying to do this with tag helpers, but it seems it doesn't work. Here`s my code where i'm trying to do this</p>
  
  <pre><code>&lt;form asp-controller="Employee" asp-action="Register" method="post" role="form" class="ui large form"&gt;
  ....
  &lt;/form&gt;
  </code></pre>
  
  <p>And here is my Register action in Employee controller</p>
  
  <pre><code> [HttpPost]
      [AllowAnonymous]
      [ValidateAntiForgeryToken]
      public async Task&lt;IActionResult&gt; Register(EmployeeRegisterViewModel employeeRegisterModel)
      {
          if (ModelState.IsValid)
          {
              IdentityResult result = await _service.CreateEmployeeAccount(employeeRegisterModel);
              if (result.Succeeded)
              {
                  return RedirectToAction(nameof(EmployeeController.Index), "Employee");
              }
              AddErrors(result);
          }
  
          return View(employeeRegisterModel);
      }
  </code></pre>
  
  <p>Thanks for help</p>