Custom routing with only attributes in .net core 2.2

by xptJony   Last Updated September 11, 2019 17:26 PM

How to enter in an action method with url /v1/{service}/{product}?

With this url I can enter in controller but can't enter in action method.

Any help, please?

[HttpPost]
[Route("/api/v1/{service}/{product}")]
public virtual IActionResult Payment([FromRoute(Name = "service")]string service, [FromRoute(Name = "product")]string product)
{ }
Tags : asp.net-core


Related Questions


Updated June 24, 2019 23:26 PM

Updated April 16, 2019 13:26 PM

Updated January 20, 2019 12:26 PM

Updated July 14, 2018 12:26 PM

Updated July 18, 2018 16:26 PM