Beispiel #1
0
        public void IncrementInventory(string productLabel, int count)
        {
            Lens lensToIncrement = Get(productLabel);

            lensToIncrement.RemainingCount += count;
            SaveChanges();
        }
Beispiel #2
0
        public Lens Get(string productLabel)
        {
            Lens v = Lenses.FirstOrDefault(l => l.ProductLabel.ToLower() == productLabel.ToLower());

            return(v);
        }