public class Foo { public int Id { get; set; } public string Name { get; set; } } public class Bar { public int Id { get; set; } public string Name { get; set; } }