diff --git a/Models/KatalogModel.cs b/Models/KatalogModel.cs index e728538..8309126 100644 --- a/Models/KatalogModel.cs +++ b/Models/KatalogModel.cs @@ -121,7 +121,7 @@ namespace BuecherwurmAPI.Models using (var command = _dbConnection.CreateCommand()) { command.Parameters.Add(new SqliteParameter("@id", id)); - command.CommandText = @"DELETE FROM Books WHERE ProductId= @id"; + command.CommandText = @"DELETE FROM Products WHERE ProductId= @id"; var dataReader = command.ExecuteReader(); } }