title: Validate a model in viewmodel?
body: <p>I wonder if there is a way to validate just one of my models in the viewmodel send it to my action? I use the DataAnnotations as validate rules.</p>
  
  <p>Like the <code>if (!ModelState.IsValid)</code> </p>
  
  <p>let me know if the question is unclear and I will edit for a better explination</p>
  
  <p><strong>EDIT</strong>
  my viewmodel looks like this</p>
  
  <pre><code>public class CompaniesViewModel
  {
      public Core.Model.Customer Company { get; set; }        
      public IEnumerable&lt;SelectListItem&gt; Items { get; set; }        
      public Core.Model.Meeting Meeting { get; set; }
  }
  </code></pre>
  
  <p>What I want to do in this particular situation is to validate just Customer. I cant do the ModelState.IsValid then all get validated. So how can I do to just validate one of them like customer in this case. Hope this was more clear</p>