title: C# parse IEnumerable and string data in one view
body: <p>I have some code that passes an <code>IEnumerable</code> list and string data to the view.</p>
  
  <p>How can I pass both an <code>IEnumerable</code> and a <code>string</code> together?</p>
  
  <p>I have a Controller</p>
  
  <pre><code>private readonly IBooksBusinessLogic _books;
  
  public ActionResult Books(int Id)
  {
      IEnumerable&lt;BooksViewModel&gt; listData = _books.GetListByIdProvinsi(Id);
  
      String a = "estc";
  
      return View(listData);
  }
  </code></pre>
  
  <p>but in view just show result list</p>
  
  <pre><code>@model IEnumerable&lt;Library.ViewModel.BooksViewModel&gt;
  
  Name Library : (String from Controller)
  
  @foreach (var item in Model)
  {
      @Html.DisplayFor(modelItem =&gt; item.BooksName)
  }
  </code></pre>
  
  <p>How can I pass the list and string together?</p>