title: MVC 4 Dynamic action method argument
body: <p>I have the following class definition:</p>
  
  <pre><code>public class CallGroupViewModel
      {
          public string Name { get; set; }
          public string BulkEmails { get; set; }
          public List&lt;dynamic&gt; Members {get;set;}
  
      }
  </code></pre>
  
  <p>The Members property is some dynamic knockout code and the contents change depending on UI stuff. I am wanting to take a short cut since the UI is so up in the air right now.</p>
  
  <p>My problem is that when it get to my action method, everything gets populate, including Members but its a array of <code>objects</code> and I can't get at the individual properties on them.</p>
  
  <pre><code>public ActionResult SaveGroup(CallGroupViewModel group)
  
  group.Members //this has a count
  group.Members[0].email //this pukes as 'email' is not valid for 'object'
  </code></pre>
  
  <p>I'm probably just missing something, any help is appreciated.</p>
  
  <p>Thanks!</p>