s
This commit is contained in:
parent
d2d9219957
commit
05e69af98d
@ -29,7 +29,7 @@ public class PostRepositories : IPostRepositories
|
|||||||
var queryInsert = @"
|
var queryInsert = @"
|
||||||
INSERT INTO Post
|
INSERT INTO Post
|
||||||
VALUES (DEFAULT, @NamePost, @LevelPost, @Wage)";
|
VALUES (DEFAULT, @NamePost, @LevelPost, @Wage)";
|
||||||
connection.Execute(queryInsert, post);
|
connection.Execute(queryInsert, new { NamePost = post.NamePost.ToString(), post.LevelPost, post.Wage });
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user