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