Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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}";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #query #parameters #sending #controller #action #core
ADD COMMENT
Topic
Name
2+2 =