title: Passing List of custom object to modal popup
body: <p>I want to make the content of the bootstrap modal popup in a separate view file, and call the corresponding action method <code>GET Action</code> related to the view file before render the view, and pass a list of custom object to the view via the action method.</p>
  
  <p><strong>The modal:</strong></p>
  
  <pre><code> &lt;div class="modal fade" id="assign_device" tabindex="-1"&gt;
      &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                 &lt;h4 class="modal-title"&gt;Assign Device&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  Device list here
              &lt;/div&gt;
              &lt;div class="modal-footer"&gt;
                   &lt;button type="button" class="btn btn-primary"&gt;Save&lt;/button&gt;
                   &lt;button type="button" class="btn btn-primary" data-dismiss="modal"&gt;Close&lt;/button&gt;
              &lt;/div&gt;
           &lt;/div&gt;
        &lt;/div&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>the above <code>modal</code> popup must appears in the current page(like <code>index.cshtml</code>) when I click a button.</p>