[Route("/p/m")]
[HttpPost]
public IActionResult Add(Table t)
{
int id = int.Parse(HttpContext.Request.Query["Id"].ToString());
}
and this my url
/p/m?Id=37
i try to get query string to my controller from url in asp.net core using this code but she give me this error
(Input string was not in a correct format.)
61. int id = int.Parse(HttpContext.Request.Query["Id"].ToString());