public IDataResult <IList <BillOfMaterialsComponent> > GetListByOrderId(int orderId) { var bom = _bomDao.Get(bom => bom.Id == orderId); var bomComps = _bomComponentDao.GetList(bomComp => bomComp.BomId == bom.Id); return(new SuccessDataResult <IList <BillOfMaterialsComponent> >(bomComps)); }
public IDataResult <BillOfMaterials> GetById(int id) { return(new SuccessDataResult <BillOfMaterials>(_bomDao.Get(c => c.Id == id))); }