9 references to Created
Microsoft.AspNetCore.Http.Results (1)
Results.cs (1)
851
=> value is null ? TypedResults.Created(uri) : TypedResults.
Created
(uri, value);
Microsoft.AspNetCore.Http.Results.Tests (3)
TypedResultsTests.cs (3)
585
var result = TypedResults.
Created
(uri, value);
666
var result = TypedResults.
Created
(default(string), default(object));
676
var result = TypedResults.
Created
(string.Empty, default(object));
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
EndpointMetadataApiDescriptionProviderTest.cs (4)
281
TypedResults.
Created
("https://example.com", new InferredJsonClass()));
306
var apiDescription = GetApiDescription(() => TypedResults.
Created
("https://example.com", new InferredJsonClass()));
339
Task.FromResult(TypedResults.
Created
("https://example.com", new InferredJsonClass())));
392
? TypedResults.
Created
<InferredJsonClass>("/", new InferredJsonClass())
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (1)
384
builder.MapGet("/api", () => TypedResults.
Created
("/test/1", new { Id = 1, Name = "Test", Todo = new Todo(1, "Test", true, DateTime.Now) }));