This commit is contained in:
Pipiaka 2024-12-22 22:40:07 +04:00
parent d2d9219957
commit 05e69af98d

View File

@ -29,7 +29,7 @@ public class PostRepositories : IPostRepositories
var queryInsert = @"
INSERT INTO Post
VALUES (DEFAULT, @NamePost, @LevelPost, @Wage)";
connection.Execute(queryInsert, post);
connection.Execute(queryInsert, new { NamePost = post.NamePost.ToString(), post.LevelPost, post.Wage });
}
catch (Exception ex)
{