.
This commit is contained in:
parent
a4b6d41a25
commit
e7b3d2d742
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue