The url format is:
http://0.0.0.0:5000/?id=author_name&id2=book_name&id3=123
I tried to make the roate for it, but it doesn't work:
routes.MapRoute(
name: "default",
template: "{controller=Main}/{action=Index}/{id?}&{id2?}&{id3?}");
And the method is:
public IActionResult Index(string id, string id2, string id3)
{
return View();
}
How do I set the proper route for passing 3 parameters?