Ra widget/anton (#27495)

* Update WidgetController.cs

* Null-forgiving operator not needed either

* damnit widget

Co-authored-by: Anton Curmanschii <anton.curm@gmail.com>
pull/27483/head
Rick Anderson 2022-11-03 12:15:59 -10:00 committed by GitHub
parent 2b6ee7960b
commit 264318c7a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
namespace RoutingSample.Snippets.Controllers; namespace RoutingSample.Snippets.Controllers;
@ -35,9 +35,9 @@ public class WidgetController : ControllerBase
{ {
// <snippet_WidgetSubscribe> // <snippet_WidgetSubscribe>
var subscribePath = _linkGenerator.GetPathByAction( var subscribePath = _linkGenerator.GetPathByAction(
"Subscribe", null!, new { id = 17 })!; HttpContext, "Subscribe", null, new { id = 17 });
// </snippet_WidgetSubscribe> // </snippet_WidgetSubscribe>
return Content(subscribePath); return Content(subscribePath!);
} }
} }