I know I can action link a route like this:
// GET: Home
[Route("Home/About/{text}/{a}/{b?}/{c?}")]
public ActionResult About(string text, string a, string b, string c)
{
ViewBag.Message = text + a + b + c;
return View();
}
by doing this:
@Html.ActionLink("GO", "About", "Home", new {text = "Test", a="value1",b="value2",c="value3" },null)
but what if I want to action link something like this?
// GET: Home
[Route("api/[controller]/[action]/{text}/{a}/{b?}/{c?}")]
public ActionResult About(string text, string a, string b, string c)
{
ViewBag.Message = text + a + b + c;
return View();
}
Thanks in advance!