84 references to ObjectResult
ApiExplorerWebSite (2)
Controllers\ApiExplorerResponseTypeWithoutAttributeController.cs (2)
31return new ObjectResult(null); 70return Task.FromResult(new ObjectResult(null));
BasicWebSite (11)
Controllers\ActionConstraints\ConsumesAttribute_OveridesBaseController.cs (1)
24return new ObjectResult(product);
Controllers\ContentNegotiation\ContentNegotiationController.cs (2)
24return new ObjectResult(CreateUser()); 30return new ObjectResult(CreateUser());
Controllers\ContentNegotiation\FallbackOnTypeBasedMatchController.cs (5)
29var objectResult = new ObjectResult(input); 43var objectResult = new ObjectResult(input); 54var objectResult = new ObjectResult(input); 63var objectResult = new ObjectResult(input); 75var objectResult = new ObjectResult("Hello World!");
Filters\TraceOutputResultFilter.cs (1)
14context.Result = new ObjectResult(trace);
Filters\UnprocessableResultFilter.cs (1)
20context.Result = new ObjectResult("Can't process this!")
RequestScopedFilter.cs (1)
25context.Result = new ObjectResult(_requestIdService.RequestId);
FormatterWebSite (3)
Controllers\DoNotRespectBrowserAcceptHeaderController.cs (1)
39return new ObjectResult(employee);
Controllers\JsonFormatterController.cs (1)
41var objectResult = new ObjectResult(user);
ValidateBodyParameterAttribute.cs (1)
36context.Result = new ObjectResult(errorInfo);
Microsoft.AspNetCore.Mvc.Core (25)
AcceptedAtActionResult.cs (1)
34: base(value)
AcceptedAtRouteResult.cs (1)
43: base(value)
AcceptedResult.cs (3)
22: base(value: null) 34: base(value) 47: base(value)
ActionResultOfT.cs (1)
95return new ObjectResult(Value)
BadRequestObjectResult.cs (2)
23: base(error) 33: base(new SerializableError(modelState))
ConflictObjectResult.cs (2)
23: base(error) 33: base(new SerializableError(modelState))
ControllerBase.cs (3)
231return new ObjectResult(value) 1898return new ObjectResult(problemDetails) 2027return new ObjectResult(validationProblem)
CreatedAtActionResult.cs (1)
34: base(value)
CreatedAtRouteResult.cs (1)
43: base(value)
CreatedResult.cs (3)
23: base(null) 35: base(value) 52: base(value)
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
41result = new ObjectResult(problemDetails)
Infrastructure\ActionResultTypeMapper.cs (1)
39return new ObjectResult(value)
Infrastructure\ProblemDetailsClientErrorFactory.cs (1)
19return new ObjectResult(problemDetails)
NotFoundObjectResult.cs (1)
22: base(value)
OkObjectResult.cs (1)
23: base(value)
UnauthorizedObjectResult.cs (1)
20public UnauthorizedObjectResult([ActionResultObjectValue] object? value) : base(value)
UnprocessableEntityObjectResult.cs (1)
32: base(error)
Microsoft.AspNetCore.Mvc.Core.Test (26)
Formatters\FormatFilterTest.cs (4)
81new ObjectResult("Hello!"), 331var objectResult = new ObjectResult("Hello!"); 371new ObjectResult("Hello!"), 422new ObjectResult("Some Value"),
Infrastructure\ObjectResultExecutorTest.cs (17)
29var result = new ObjectResult("input") 57var result = new ObjectResult("input"); 80var result = new ObjectResult("input"); 102var result = new ObjectResult("input"); 122var result = new ObjectResult(new ProblemDetails()) 147var result = new ObjectResult(new ProblemDetails()); 169var result = new ObjectResult(new ProblemDetails()); 192var result = new ObjectResult(new ProblemDetails()) 217var result = new ObjectResult(new ProblemDetails()) 241var result = new ObjectResult(new ProblemDetails()); 264var result = new ObjectResult("input"); 293var result = new ObjectResult("someValue"); 315var result = new ObjectResult("some value"); 335var result = new ObjectResult("input"); 381var result = new ObjectResult("input"); 418var result = new ObjectResult("input"); 441var result = new ObjectResult(value: null);
ObjectResultTests.cs (4)
24var result = new ObjectResult(input); 38var result = new ObjectResult("Hello") 70var result = new ObjectResult(details) 100var result = new ObjectResult(details)
ProducesAttributeTests.cs (1)
187new ObjectResult("Some Value"),
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
1156=> new ObjectResult(value) { StatusCode = statusCode };
PageModel.cs (1)
1509return new ObjectResult(value)
Mvc.Api.Analyzers.Test (10)
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTests.cs (1)
22return new ObjectResult(new object()) { StatusCode = 201 };
TestFiles\ActualApiResponseMetadataFactoryTest\InspectReturnExpressionTestsForSwitchExpression.cs (1)
30_ => new ObjectResult(new object()) { StatusCode = 201 }
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Input.cs (4)
18return new ObjectResult(new object()) 26return new ObjectResult(new object()) 36return new ObjectResult(new object()) 44return new ObjectResult(new object())
TestFiles\AddResponseTypeAttributeCodeFixProviderIntegrationTest\CodeFixAddsStatusCodesFromObjectInitializer.Output.cs (4)
24return new ObjectResult(new object()) 32return new ObjectResult(new object()) 42return new ObjectResult(new object()) 50return new ObjectResult(new object())
Negotiate.Server (2)
Controllers\AuthController.cs (2)
18return new ObjectResult(new 31return new ObjectResult(new
XmlFormattersWebSite (3)
Controllers\HomeController.cs (1)
17return new ObjectResult(GetModelStateErrorMessages(ModelState))
Controllers\SerializableErrorController.cs (1)
28return new ObjectResult(new SerializableError(ModelState));
Controllers\ValidationController.cs (1)
16return new ObjectResult(new ModelBindingInfo()