fix: get author by id query
This commit is contained in:
parent
83c1a526d3
commit
4e0b269003
@ -223,7 +223,7 @@ namespace Team4
|
|||||||
using (var command = conn.CreateCommand())
|
using (var command = conn.CreateCommand())
|
||||||
{
|
{
|
||||||
command.CommandText = @"
|
command.CommandText = @"
|
||||||
SELECT author.ID
|
SELECT *
|
||||||
FROM Authors author
|
FROM Authors author
|
||||||
WHERE author.ID = @aid;";
|
WHERE author.ID = @aid;";
|
||||||
command.Parameters.AddWithValue("@aid", authorID);
|
command.Parameters.AddWithValue("@aid", authorID);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user