We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a4103 commit 91dc46aCopy full SHA for 91dc46a
src/GoatQuery.AspNetCore/src/Attributes/EnableQueryAttribute.cs
@@ -47,7 +47,7 @@ public override void OnActionExecuted(ActionExecutedContext context)
47
queryString.TryGetValue("count", out var countQuery);
48
var countString = countQuery.ToString();
49
50
- if (bool.TryParse(countString, out bool count) && !string.IsNullOrEmpty(countString))
+ if (!bool.TryParse(countString, out bool count) && !string.IsNullOrEmpty(countString))
51
{
52
context.Result = new BadRequestObjectResult(new { Message = "The query parameter 'Count' could not be parsed to a boolean" });
53
return;
0 commit comments