title: how to pass a complext model to Rotativa?
body: <p>I am using MVC 4 to create an application.  I am using Rotativa to create a pdf.  I am calling  ActionAsPdf with a complex model</p>
  
  <p>my model is</p>
  
  <pre><code>public class BrandingDetails
      {
          public int PDFFileNo { get; set; }
          public string LogoImageUrl { get; set; }
          public string WebsiteUrl { get; set; }
          public string PhoneNumber_AU { get; set; }
          public string PhoneNumber_NZ { get; set; }
          public string FacebookImageUrl { get; set; }
          public string TwitterImageUrl { get; set; }
          public string PinterestImageUrl { get; set; }
          public string YoutubeImageUrl { get; set; }
          public string CruiseCode { get; set; }
          public string ShipName { get; set; }
          public string PortName { get; set; }
          public string SailDate { get; set; }
          public string CruiseNights { get; set; }
          public string Destinations { get; set; }
          public string QuoteRef { get; set; }
          public string CruiseName { get; set; }
          public string DescriptionCruise { get; set; }
  
          public IEnumerable&lt;CruiseOptions&gt; CruiseOptions { get; set; }
  
      }
  </code></pre>
  
  <p>I am calling the following</p>
  
  <pre><code>var viewModel = QuoteHelper.GetViewModel(item);
  
   var pdfResult = new ActionAsPdf("CruiseDetails", quoteDetails, cruiseOptions);
  
  
  var binary = pdfResult.BuildPdf(this.ControllerContext);
  </code></pre>
  
  <p>my Action method it is calling is</p>
  
  <pre><code> public ActionResult CruiseDetails(BrandingDetails quoteDetails, IEnumerable&lt;CruiseOptions&gt; cruiseOptions)
          {
  
              return View("CruiseDetails", quoteDetails);
  
          }
  </code></pre>
  
  <p>but for some reason when I pass it to the Action all the data is passed bar the CruiseOptions .. that is set to no elements... how is that possible?</p>