//creating a method to add validted supplier public bool AddSupplierBL(Supplier newSupplier) { bool supplierAdded = false; try { if (ValidateSupplier(newSupplier)) { SupplierDAL supplierDAL = new SupplierDAL(); supplierAdded = supplierDAL.AddSupplierDAL(newSupplier); } } catch (Exception ex) { throw new InventoryException(ex.Message); } return(supplierAdded); }
public static bool AddSupplierBL(Supplier newSupplier) { bool SupplierAdded = false; try { if (ValidateSupplier(newSupplier)) { SupplierDAL SupplierDAL = new SupplierDAL(); SupplierAdded = SupplierDAL.AddSupplierDAL(newSupplier); } } catch (Exception) { throw; } return(SupplierAdded); }