4 instantiations of ConflictObjectResult
Microsoft.AspNetCore.Mvc.Core (2)
ControllerBase.cs (2)
1817
=> new
ConflictObjectResult
(error);
1826
=> new
ConflictObjectResult
(modelState);
Microsoft.AspNetCore.Mvc.Core.Test (2)
ConflictObjectResultTest.cs (2)
16
var conflictObjectResult = new
ConflictObjectResult
(obj);
27
var conflictObjectResult = new
ConflictObjectResult
(new ModelStateDictionary());
14 references to ConflictObjectResult
Microsoft.AspNetCore.Mvc.Core (8)
ConflictObjectResult.cs (2)
19
/// Creates a new <see cref="
ConflictObjectResult
"/> instance.
29
/// Creates a new <see cref="
ConflictObjectResult
"/> instance.
ControllerBase.cs (6)
1811
/// Creates a <see cref="
ConflictObjectResult
"/> that produces a <see cref="StatusCodes.Status409Conflict"/> response.
1814
/// <returns>The created <see cref="
ConflictObjectResult
"/> for the response.</returns>
1816
public virtual
ConflictObjectResult
Conflict([ActionResultObjectValue] object? error)
1820
/// Creates a <see cref="
ConflictObjectResult
"/> that produces a <see cref="StatusCodes.Status409Conflict"/> response.
1823
/// <returns>The created <see cref="
ConflictObjectResult
"/> for the response.</returns>
1825
public virtual
ConflictObjectResult
Conflict([ActionResultObjectValue] ModelStateDictionary modelState)
Microsoft.AspNetCore.Mvc.Core.Test (6)
ConflictObjectResultTest.cs (2)
16
var
conflictObjectResult = new ConflictObjectResult(obj);
27
var
conflictObjectResult = new ConflictObjectResult(new ModelStateDictionary());
ControllerBaseTest.cs (4)
2134
var
result = controller.Conflict(obj);
2137
Assert.IsType<
ConflictObjectResult
>(result);
2149
var
result = controller.Conflict(new ModelStateDictionary());
2152
Assert.IsType<
ConflictObjectResult
>(result);