Exemplo n.º 1
0
        public static bool AddSupplierBL(Supplier newSupplier)
        {
            bool supplierAdded = false;

            try
            {
                if (ValidateSupplier(newSupplier))
                {
                    SupplierDAL supplierDAL = new SupplierDAL();
                    supplierAdded = supplierDAL.AddGuestDAL(newSupplier);
                }
            }
            catch (InventoryException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(supplierAdded);
        }