Update asp0004.md (#23606)
* Update asp0004.md * Update aspnetcore/diagnostics/asp0004.mdpull/23612/head
parent
ab78441d44
commit
7731806d37
|
@ -38,4 +38,4 @@ app.MapGet("/todos/{id}", (int id) => Results.Json(new Todo { .. }));
|
|||
|
||||
## When to suppress warnings
|
||||
|
||||
Do ***not*** suppress a warning from this rule. Misplaced attributes can result in unexpected behavior at runtime.
|
||||
Do ***not*** suppress a warning from this rule. Returning an `IActionResult` that doesn't implement `IResult` results in serializing the result instance rather than executing the result.
|
||||
|
|
Loading…
Reference in New Issue