s
This commit is contained in:
parent
71e7a114de
commit
5b2d2b883c
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user