private PCExpertModel LoadModel(EfWorkplace workplace) { return(new PCExpertModel { Interfaces = workplace.Query <ComponentInterface>().ToList(), Components = workplace.Query <PCComponent>().ToList(), Configurations = workplace.Query <PCConfiguration>().ToList(), Characteristics = workplace.Query <ComponentCharacteristic>().ToList() }); }