title: @Html.Partial does not render the view when the code is within foreach loop
body: <p>I have below code for displaying a partial view,
  but when the application is executed the partial view is not displayed.</p>
  
  <p>I appreciate any suggestions.</p>
  
  <pre><code>@if (Model != null &amp;&amp; Model.Count() &gt; 0)
   {
       foreach (var item in Model)
       {
          &lt;div id="assignment_@item.AssignmentId" class="row"&gt;
               @Html.Partial("_AssignmentSubmissionsPartial", item);                                  
          &lt;/div&gt;
          &lt;hr&gt;
       }
    }
  </code></pre>
  
  <p>If I have to use the above code with RenderPartial how can I use it?</p>