I have a model:
public class Foo { public int Id { get; set; } public string Name { get; set; } public Bar Bar { get; set; } } public class Bar {