How to pass multiple parameters to a get method in ASP.NET Core
<p>How can I pass in multiple parameters to Get methods in an MVC 6 controller. For example I want to be able to have something like the following.</p>

<pre><code>[Route("api/[controller]")]
public class PersonController : Controller
{
    public string Get(int id)
    {
    }

    public string Get(string firstName, string lastName)
    {

    }

    public string Get(string firstName, string lastName, string address)
    {

    }
}
</code></pre>

<p>So I can query like.</p>

<pre><code>api/person?id=1
api/person?firstName=john&amp;lastName=doe
api/person?firstName=john&amp;lastName=doe&amp;address=streetA
</code></pre>