public List <Item> GetItems() { List <Item> reorderItem = new List <Item>(); List <StockCard> allItemsInStock = StockCardDao.GetAllInStock(); foreach (StockCard item in allItemsInStock) { if (item.OnHandQuantity < item.Item.ReorderLevel) { List <SupplierItem> suppliersItems = SupplierItemDao.GetSuppliersOfItem(item.Item); StockReorder.Add(item.Item, suppliersItems); reorderItem.Add(item.Item); } } return(reorderItem); }
public List <SupplierItem> getAllSuplierItems(Item item) { List <SupplierItem> suppliersItems = SupplierItemDao.GetSuppliersOfItem(item); return(suppliersItems); }