diff --git a/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/PostRepositories.cs b/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/PostRepositories.cs index 0071c48..7b9e6a4 100644 --- a/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/PostRepositories.cs +++ b/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/PostRepositories.cs @@ -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) {