17 references to BadRequestObjectResult
Microsoft.AspNetCore.Mvc.Core (4)
ControllerBase.cs (3)
1757
=> new
BadRequestObjectResult
(error);
1914
return new
BadRequestObjectResult
(descriptor);
2024
return new
BadRequestObjectResult
(validationProblem);
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
37
result = new
BadRequestObjectResult
(problemDetails);
Microsoft.AspNetCore.Mvc.Core.Test (2)
BadRequestObjectResultTests.cs (1)
16
var badRequestObjectResult = new
BadRequestObjectResult
(obj);
ObjectResultTests.cs (1)
131
var result = new
BadRequestObjectResult
(details)
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
136
=> new
BadRequestObjectResult
(error);
PageModel.cs (1)
468
=> new
BadRequestObjectResult
(error);
Mvc.Api.Analyzers.Test (8)
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTests.cs (4)
37
return new
BadRequestObjectResult
(new object())
57
return new
BadRequestObjectResult
(new object()) { StatusCode = statusCode };
62
return new
BadRequestObjectResult
(new TestModel());
68
return new
BadRequestObjectResult
(local);
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTestsForSwitchExpression.cs (4)
54
_ => new
BadRequestObjectResult
(new object())
85
_ => new
BadRequestObjectResult
(new object()) { StatusCode = statusCode }
93
_ => new
BadRequestObjectResult
(new TestModel())
103
_ => new
BadRequestObjectResult
(local)
XmlFormattersWebSite (1)
Controllers\XmlApiControllerBase.cs (1)
39
return new
BadRequestObjectResult
(new ValidationProblemDetails