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
parent
2b6ee7960b
commit
264318c7a2
|
@ -1,4 +1,4 @@
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace RoutingSample.Snippets.Controllers;
|
||||
|
||||
|
@ -35,9 +35,9 @@ public class WidgetController : ControllerBase
|
|||
{
|
||||
// <snippet_WidgetSubscribe>
|
||||
var subscribePath = _linkGenerator.GetPathByAction(
|
||||
"Subscribe", null!, new { id = 17 })!;
|
||||
HttpContext, "Subscribe", null, new { id = 17 });
|
||||
// </snippet_WidgetSubscribe>
|
||||
|
||||
return Content(subscribePath);
|
||||
return Content(subscribePath!);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue