Exemplo n.º 1
0
 public bool addItemToStore(string itemBarCode, string item_name, int amount, int price, string shopName, string descreption, string[] catagories)
 {
     Logger.GetInstance().Event("product with barcode " + itemBarCode + " has been added to the shop " + shopName);
     //todo check if works from mohsen!
     if (facade.AddNewProductToSystem(itemBarCode, item_name, descreption, price, catagories))
     {
         return(facade.AddItemToStore(shopName, itemBarCode, amount));
     }
     //the item barcode does not match the ProductName in the inventory.
     return(false);
 }