#9 Delete Product box now available
This commit is contained in:
@ -95,5 +95,13 @@ class ProductController(DatabaseController):
|
||||
|
||||
self.do(query, params)
|
||||
|
||||
def delete(self):
|
||||
print("Doing work")
|
||||
def delete(self, id: int):
|
||||
params = [
|
||||
id
|
||||
]
|
||||
query = """
|
||||
DELETE FROM Products
|
||||
WHERE id = ?
|
||||
"""
|
||||
|
||||
self.do(query, params)
|
||||
|
Reference in New Issue
Block a user