title: How to pass a string from Controller to View in ASP.NET MVC5
body: <p>I have this controller : </p>
  
  <pre><code>public ActionResult MyController(string myString)
  {
      return View((object)myString);
  }
  </code></pre>
  
  <p>I'm trying to pass the string to view like this : </p>
  
  <pre><code>@model string
  @Html.EditorFor(m =&gt; m)
  </code></pre>
  
  <p>I get value can't be null error. How can I fix this? Thanks.</p>