4 instantiations of UnprocessableEntityObjectResult
Microsoft.AspNetCore.Mvc.Core (2)
ControllerBase.cs (2)
1787
=> new
UnprocessableEntityObjectResult
(error);
1799
return new
UnprocessableEntityObjectResult
(modelState);
Microsoft.AspNetCore.Mvc.Core.Test (2)
UnprocessableEntityObjectResultTests.cs (2)
16
var result = new
UnprocessableEntityObjectResult
(obj);
27
var result = new
UnprocessableEntityObjectResult
(new ModelStateDictionary());
14 references to UnprocessableEntityObjectResult
Microsoft.AspNetCore.Mvc.Core (8)
ControllerBase.cs (6)
1781
/// Creates an <see cref="
UnprocessableEntityObjectResult
"/> that produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
1784
/// <returns>The created <see cref="
UnprocessableEntityObjectResult
"/> for the response.</returns>
1786
public virtual
UnprocessableEntityObjectResult
UnprocessableEntity([ActionResultObjectValue] object? error)
1790
/// Creates an <see cref="
UnprocessableEntityObjectResult
"/> that produces a <see cref="StatusCodes.Status422UnprocessableEntity"/> response.
1793
/// <returns>The created <see cref="
UnprocessableEntityObjectResult
"/> for the response.</returns>
1795
public virtual
UnprocessableEntityObjectResult
UnprocessableEntity([ActionResultObjectValue] ModelStateDictionary modelState)
UnprocessableEntityObjectResult.cs (2)
19
/// Creates a new <see cref="
UnprocessableEntityObjectResult
"/> instance.
28
/// Creates a new <see cref="
UnprocessableEntityObjectResult
"/> instance.
Microsoft.AspNetCore.Mvc.Core.Test (6)
ControllerBaseTest.cs (4)
2087
var
result = controller.UnprocessableEntity(obj);
2090
Assert.IsType<
UnprocessableEntityObjectResult
>(result);
2102
var
result = controller.UnprocessableEntity(new ModelStateDictionary());
2105
Assert.IsType<
UnprocessableEntityObjectResult
>(result);
UnprocessableEntityObjectResultTests.cs (2)
16
var
result = new UnprocessableEntityObjectResult(obj);
27
var
result = new UnprocessableEntityObjectResult(new ModelStateDictionary());