public IEnumerable<Defect> GetDefectsByCommodityId(int id) { //DispositionDatabase dbDisposition = new DispositionDatabase(); //return dbDisposition.GetDefectsByCommodityId(id); DispositionFactory factory = new DispositionFactory(); return factory.GetDefectsByCommodityId(id); }
public IEnumerable<Defect> GetDefectsByCommodityId(int id) { DispositionFactory factory = new DispositionFactory(); return factory.GetDefectsByCommodityId(id); }