diff --git a/Data/SqliteClientRepository.cs b/Data/SqliteClientRepository.cs index 3184bbd..e219497 100644 --- a/Data/SqliteClientRepository.cs +++ b/Data/SqliteClientRepository.cs @@ -62,12 +62,12 @@ namespace Workshop8.Data VALUES (@nome, @email, @criadoEm) "; cmd.CommandType = CommandType.Text; - cmd.Parameters.Add(new SqliteParameter("@nome",c.Nome)); - cmd.Parameters.Add(new SqliteParameter("@email",c.Email)); - cmd.Parameters.Add(new SqliteParameter("@criadoEm",c.CriadoEm)); - - await using cmd.ExecuteNonQueryAsync(); + cmd.Parameters.Add(new SqliteParameter("@nome", c.Nome)); + cmd.Parameters.Add(new SqliteParameter("@email", c.Email)); + cmd.Parameters.Add(new SqliteParameter("@criadoEm", c.CriadoEm)); + await cmd.ExecuteNonQueryAsync(); + } public async Task UpdateClientAsync(Cliente c) diff --git a/database.sqlite b/database.sqlite index 374870d..aa18b8c 100644 Binary files a/database.sqlite and b/database.sqlite differ