public List <StockSize> GetAllStockSizes() { List <StockSize> stockSizes = new List <StockSize>(); StockSizesDAO dao = new StockSizesDAO(); stockSizes = dao.GetAllStockSizes(); return(stockSizes); }
public List <StockSize> GetAllStockSizes(int productId) { List <StockSize> stockSizes = new List <StockSize>(); StockSizesDAO dao = new StockSizesDAO(); stockSizes = dao.GetAllStockSizes(); stockSizes = stockSizes.FindAll(ss => ss.productId.Equals(productId)); return(stockSizes); }