Passing dynamic model to partial view
<p>I have an option for user to select the reporting view between 2 date range.</p>

<p>Below is my <strong>ReportsViewModel.cs</strong></p>

<pre><code>public class ReportsViewModel
{
    public DateTime DateRangeFrom { get; set; }
    public DateTime DateRangeTo { get; set; }
    public string ReportFor { get; set; }
    public SelectList ReportForList { get; set; }
}
</code></pre>

<p>Now <code>ReportForList</code> will have values like <strong>Any</strong>,<strong>Table1</strong>,<strong>Table2</strong>,<strong>Table3</strong>.</p>

<p>If user selects <strong>Any</strong> the <code>model</code> that is going to get generated will be from all the 3 tables and so and hence the structure of the model will be based on user selection. How would I go generating <code>model</code> for this and pass it into <code>PartialView</code>? Will it be a set of <code>Key/Value</code> pairs or should <code>dynamic</code> be used here? Is there anyway to achieve the reporting structure for above requirement?</p>