Beispiel #1
0
        public FullComponent getComponents(int InfoId)
        {
            FullComponent fullComponent = new FullComponent();

            fullComponent.ComponentInfo = db.ComponentInformations.Find(InfoId);
            fullComponent.Components    = db.Components.Where(x => x.ComponentInfoId == InfoId).ToList();
            return(fullComponent);
        }
Beispiel #2
0
 public FullComponent getComponents(int InfoId)
 {
     FullComponent fullComponent = new FullComponent();
     fullComponent.ComponentInfo = db.ComponentInformations.Find(InfoId);
     fullComponent.Components = db.Components.Where(x => x.ComponentInfoId == InfoId).ToList();
     return fullComponent;
 }