Skip to content

HTTP Methods Overview in Quick Start #67

Closed
@DaneeTheDeveloper

Description

@DaneeTheDeveloper

I tried out the following code provided in the doc

app.MapGet("/hello", () => "Hello World!");
app.MapGet("/todos", () => new { TodoItem = "Learn about routing", Complete = false });
app.MapPost("/todos", () => Result.Ok());

And I received the following error message-

(6,29): error CS0103: The name 'Result' does not exist in the current context

Just want to make note of that!

Metadata

Metadata

Assignees

Labels

Getting StartedDocs designed to give developer quick overviews on how to implement specific featuresdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions