Пример #1
0
 public string Move(IProduct a, Warehouse b, int q)
 {
     foreach (IProduct i in this.products)
     {
         if (i.SKU == a.SKU)
         {
             i.quantity -= q;
             b.Adding(a, q);
             return($"{q} {i.name} was moving in quantity and there left = {i.quantity}");
         }
     }
     return("The product was not migrate");
 }