title: Creating a Tuple<List<Model>, Model> to pass as a model to Html.Partial
body: <p>I am a beginner at using MVC3 with the razor syntax. I want to know how can I write for <code>@html.partial</code>.</p>
  
  <p>In ProductVarient.cshtml, I will call the partial view as follows:</p>
  
  <pre><code> @{
       var dataDictAttributes = new ViewDataDictionary();
       dataDictAttributes.TemplateInfo.HtmlFieldPrefix = string.Format("attributes_{0}", Model.Id);
       @Html.Partial("_ProductAttributes", Tuple.Create&lt;List&lt;Model.ProductVariantAttributes&gt;, Model&gt;(dataDictAttributes,model));                  
   }
  </code></pre>
  
  <p>I want to know the syntax for passing the parameters to <code>@html.partial()</code>. Also, where it should be changed, in the controller or the model?</p>
  
  <p>In _ProductAttributes.cshtml, I have declared the model as follows:</p>
  
  <pre><code>@model Tuple&lt;IList&lt;ProductDetailsModel.ProductVariantModel.ProductVariantAttributeModel&gt;,ProductDetailsModel.ProductVariantModel.ProductVariantAttributeModel&gt;
  </code></pre>
  
  <p>Error occurs as follows:</p>
  
  <blockquote>
    <p>'System.Web.Mvc.WebViewPage.Model' is a 'property' but is used like a 'type'</p>
  </blockquote>
  
  <p>In the model:</p>
  
  <pre><code>public class ProductVariantAttributeModel : BaseNopEntityModel
  {
      public ProductVariantAttributeModel();
  
      public IList&lt;string&gt; AllowedFileExtensions { get; set; }
      public AttributeControlType AttributeControlType { get; set; }
      public string Description { get; set; }
  
      [NopResourceDisplayName("Products.Qty")]
      public int EnteredQuantity { get; set; }
      public bool IsRequired { get; set; }
      public string Name { get; set; }
      public int ProductAttributeId { get; set; }
      public int ProductVariantId { get; set; }
      public int? SelectedDay { get; set; }
      public int? SelectedMonth { get; set; }
      public int? SelectedYear { get; set; }
      public string TextPrompt { get; set; }
      public string TextValue { get; set; }
      public IList&lt;ProductDetailsModel.ProductVariantModel.ProductVariantAttributeValueModel&gt; Values { get; set; }
  }
  </code></pre>