public void ConstructDomainModelData <T1, T2>(DomainModelBuilder <T1, T2> domainModelBuilder) where T1 : BaseData where T2 : ViewModel { domainModelBuilder.BuildBaseData(); domainModelBuilder.BuildConcreteData(); }