/// <summary> /// Deletes a Supplier /// Level: Logic /// </summary> /// <param name="ID">The Supplier ID</param> /// <returns>True if Successful, False if Not</returns> public bool DeleteSupplier(int ID) { try { SuppliersRepository myRepository = new SuppliersRepository(); if ((!myRepository.SupplierHasOrders(ID)) & (!myRepository.SupplierHasProducts(ID))) { myRepository.DeleteSupplier(ID); return(true); } else { return(false); } } catch (Exception Exception) { throw Exception; } }