diff --git a/rules/S5147/csharp/how-to-fix-it/mongodb-csharp-driver.adoc b/rules/S5147/csharp/how-to-fix-it/mongodb-csharp-driver.adoc index d862a366df6..c2f36847d2c 100644 --- a/rules/S5147/csharp/how-to-fix-it/mongodb-csharp-driver.adoc +++ b/rules/S5147/csharp/how-to-fix-it/mongodb-csharp-driver.adoc @@ -34,7 +34,7 @@ public class ExampleController: ControllerBase var filterDefinition = Request.Query["filterDefinition"]; - await collection.FindAsync(filter) + await collection.FindAsync(filterDefinition) } } ---- @@ -61,7 +61,7 @@ public class ExampleController: ControllerBase var filterDefinition = Builders.Filter.Eq("Username", "Example"); - await collection.FindAsync(filter) + await collection.FindAsync(filterDefinition) } } ----