I am making a WebAPI call to get an object back similar to this one:
public class DocumentCategoryModel : IDocumentCategoryTree
{
public DocumentCategoryModel()
{
SubCategories = new List<IDocumentCategoryTree>();
}
public int ID { get; set; }
public ICollection<IDocumentCategoryTree> SubCategories { get; set; }
}
The ID and other properties are populated correctly. The SubCategories prop has a collection of the correct size, but every entry is null.
Any idea why? I can't make it a collection of a concrete type (out of my control), but the WebAPI is able to figure out which class it should be...