title: How do I represent multiple DTOs for a domain object in .NET Web API?
body: <p>I'm writing a set of REST services and have come upon a problem that I'm sure has an appropriate solution/pattern that's just eluding me.</p>
  
  <p>For instance /api/People/1 will return a serialized representation of PersonDto (which is a pared down representation of the Person domain object created by Entity Framework.  I'm using AutoMapper to hydrate PersonDto.</p>
  
  <p>However a second controller (say, /api/Classes/) is going to return different complex object, which may contain one or more Persons, however I want to represent each person in a different way than simply using an existing PersonDto (e.g. I might require more or less fields).  </p>
  
  <p>Do I need to define a ClassPersonDto?  I'm not sure what the "proper" thing is to do here.</p>