how to pass parameter in url in asp.net mvc core code example
Example: query parameters sending to controller action asp.net core
// GET api/user/firstname/lastname/address
[HttpGet("{firstName}/{lastName}/{address}")]
public string GetQuery(string id, string firstName, string lastName, string address)
{
return $"{firstName}:{lastName}:{address}";
}