title: How to pass Enum from view to model ASP.Net MVC
body: <p>the controller code looks like</p>
  
  <pre><code>public class EmployeeController : Controller
  {
      public enum EmployeeType
      {
          RecruitmentOffice,
          ResearchInstitute
      }
  
      public ActionResult Details(int id, EmployeeType type)
      {            
          switch (type)
          {
              case EmployeeType.RecruitmentOffice:
                  // load repository
                  // load domain object
                  // load view specific to recruitment office
                  break;
              case EmployeeType.ResearchInstitute:
                  // load repository
                  // load domain object
                  // load view specific to recruitment office
                  break;
          }
      }
  }
  </code></pre>
  
  <p>now i want that how to generate <code>form action method</code> which will point to <code>Details</code> action method and pass the enum value like <code>EmployeeType.RecruitmentOffice or EmployeeType.ResearchInstitute</code></p>
  
  <p>and again when i will call that action method by <code>jquery</code> then how could i pass parameter <code>for id &amp; EmployeeType</code>.</p>
  
  <p>please discuss with sample code. thanks</p>