public static Boolean addNewInventoryPurchaseInfo(InventoryPurchaseInfo purchaseInfo)
        {
            ManufacturerDAO datalayer1 = new ManufacturerDAO();
            Manufacturer existingManufacturer = datalayer1.getSingleManufacturer(purchaseInfo.manufacturerId);

            if (existingManufacturer.manufacturerId != null)
            {
                InventoryPurchaseInfoDAO datalayer2 = new InventoryPurchaseInfoDAO();
                return datalayer2.addNewInventoryPurchaseInfo(purchaseInfo);
            }
            else
            {
                return false;
            }
        }
        public static Boolean processOrder(List<PurchaseOrder> orders)
        {
            ManufacturerDAO datalayer = new ManufacturerDAO();
            foreach (PurchaseOrder order in orders.ToList())
            {
                Manufacturer manufacturer = datalayer.getSingleManufacturer(order.manufacturer.name);
                order.manufacturer = manufacturer;
            }

            PurchaseOrderXMLWritter xmlWritter = new PurchaseOrderXMLWritter();
            return xmlWritter.writePurchaseOrders(orders);
        }
 public static Manufacturer getManufacturer(int id)
 {
     ManufacturerDAO datalayer = new ManufacturerDAO();
     return datalayer.getSingleManufacturer(id);
 }
 public static List<Manufacturer> getAllManufacturers()
 {
     ManufacturerDAO datalayer = new ManufacturerDAO();
     return datalayer.getAllManufacturers();
 }
 public static Boolean addManaufacturer(Manufacturer manufacturer)
 {
     ManufacturerDAO datalayer = new ManufacturerDAO();
     return datalayer.addManufacturer(manufacturer);
 }