title: Create and pass Model from HTML to Controller
body: <p>I have the following</p>
  
  <p>LegacyController</p>
  
  <pre><code>public ActionResult Index(Intranet.Models.LegacyModel legacy)
  {
      return View(legacy);
  }
  </code></pre>
  
  <p>LegacyView</p>
  
  <pre><code>@model Intranet.Models.LegacyModel
  @{
      ViewBag.Title = @Model.PageTitle;
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  
  @File.ReadAllText(Server.MapPath(Model.URL));
  </code></pre>
  
  <p>LegacyModel</p>
  
  <pre><code>public class LegacyModel
  {
      public string PageTitle { get; set; }
      public string URL { get; set; }
  }
  </code></pre>
  
  <p>Within the _layout page I have menus. When a user clicks on a link I want from within the cshtml page create the LegacyModel object with the correct properties and pass it to the controller so the view is displayed.</p>