List<ContractType> filteredContractTypes = contractTypes.Where(x => x.ContractTypeName == "SUA").ToList();
List<ContractSubType> contractSubTypes = filteredContractTypes.Select(c => c.ContractSubTypes).ToList();
the class contract type has a collection of subcontracttypes. how can I select just the subcontracttypes in linq?
I am getting the below error
> Cannot implicitly convert type
> 'System.Collections.Generic.List<System.Collections.Generic.IEnumerable<Models.ContractSubType>>'
> to 'System.Collections.Generic.List<Models.ContractSubType>'