using a ViewModel for a partial view in a view
===

I am curious how to do the following. I have a main view with parent data about support cases. I also will be showing a child list of MTM data using a partial view. I have built a ViewModel to supply the partial view with the data needed.

Here is my ViewModel:

    public class CaseComplaintsViewModel
        {
        public string ComplaintCode { get; set; }
        public string ComplaintType { get; set; }
        }

Pretty simple.

Here is the partial view.

    @model IEnumerable<cummins_db.ViewModels.CaseComplaintsViewModel>

    <table width="100%">
    <tr>
    <th>Complaint Code</th>
    <th>Complaint Description</th>
    </tr>  
    @foreach (var item in Model)
        {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ComplaintCode )    
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ComplaintType)
        </td>
            
    </tr>
        }
    </table>

This partial view will be used inside of my main Cases view. I will also periodically refresh this partial view using ajax.

So my questions is, how do I get the correct data into the view when my main cases view opens? Does the partial view need it's own controller or do I handle that in the Cases controller?
