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));
        }
예제 #2
0
 public IDataResult <BillOfMaterials> GetById(int id)
 {
     return(new SuccessDataResult <BillOfMaterials>(_bomDao.Get(c => c.Id == id)));
 }