I have an object like this:
public class Foo {
public string Title { get; set; }
public IList<FooChild> Children { get; set; }
}
public class FooChild {
public string Title { get; set; }
}
I want to map this onto a view model like this:
public class FooDTO {
public string Title { get; set; }
public List<string> ChildrenTitles { get; set; }
}
I know I could do this by creating a FooChildDTO
and creating a map for it, but I really just want to coalesce the children titles into a simple list of strings.