30 references to Ok
AzureFunctionsEndToEnd.ApiService (3)
Program.cs (3)
30return Results.Ok("Message sent to Azure Storage Queue."); 49return Results.Ok("String uploaded to Azure Storage Blobs."); 56return Results.Ok("Message sent to Azure EventHubs.");
BasicWebSite (1)
Controllers\ContactApiController.cs (1)
137=> Results.Ok(new Contact() { ContactId = id });
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
3812return Results.Ok(FormattableString.Invariant($"Hello {name}. This is from an extension method."));
Microsoft.AspNetCore.Http.Results (1)
Results.cs (1)
663=> Ok<object>(value);
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsTests.cs (1)
1224var result = Results.Ok(value) as Ok<Todo>;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
EndpointMetadataApiDescriptionProviderTest.cs (2)
255() => Results.Ok(new InferredJsonClass())); 360() => Task.FromResult(Results.Ok(new InferredJsonClass())));
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
227() => Results.Ok(new InferredJsonClass()));
MilvusPlayground.ApiService (1)
Program.cs (1)
100return Results.Ok("Collection created");
MinimalFormSample (2)
Program.cs (2)
52app.MapPost("/todo", [ValidateAntiForgeryToken] ([FromForm] Todo todo) => Results.Ok(todo)); 60var result = Results.Ok(new Todo(name, isCompleted, dueDate));
MySql.ApiService (1)
Program.cs (1)
39? Results.Ok(item)
Nats.ApiService (2)
Program.cs (2)
39return Results.Ok(stream.Info); 73return Results.Ok(events);
RateLimitingSample (2)
Program.cs (2)
68? Results.Ok(todo) 102return Results.Ok(todo);
Sample (7)
Program.cs (7)
57forms.MapPost("/form-file", (IFormFile resume) => Results.Ok(resume.FileName)); 58forms.MapPost("/form-files", (IFormFileCollection files) => Results.Ok(files.Count)); 59forms.MapPost("/form-file-multiple", (IFormFile resume, IFormFileCollection files) => Results.Ok(files.Count + resume.FileName)); 64forms.MapPost("/form-todo", ([FromForm] Todo todo) => Results.Ok(todo)); 65forms.MapPost("/forms-pocos-and-files", ([FromForm] Todo todo, IFormFile file) => Results.Ok(new { Todo = todo, File = file.FileName })); 103schemas.MapGet("/iresult-no-produces", () => Results.Ok(new Triangle { Color = "red", Sides = 3, Hypotenuse = 5.0 })); 104schemas.MapGet("/iresult-with-produces", () => Results.Ok(new Triangle { Color = "red", Sides = 3, Hypotenuse = 5.0 }))
SimpleWebSiteWithWebApplicationBuilder (2)
Program.cs (2)
26app.MapGet("/ok-object", () => Ok(new Person("John", 42))); 47app.MapPost("/accepts-default", (Person person) => Results.Ok(person.Name));
TestProject.IntegrationServiceA (3)
Postgres\NpgsqlEFCoreExtensions.cs (1)
18return results.Any() ? Results.Ok("Success!") : Results.Problem("Failed");
Postgres\PostgresExtensions.cs (1)
23return results.HasRows ? Results.Ok("Success!") : Results.Problem("Failed");
Redis\RedisExtensions.cs (1)
24return data == content ? Results.Ok("Success!") : Results.Problem("Failed");