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); }
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; }