❔ how to pass multiple arguments in apicall from ajex get url?
i used following approach already



?foo=1&foo=2&foo=3 way, IIRC

https://localhost:44385/Exam/GetExamResultByAdmin/${subId}&${Uid}, true);React with ❌ to remove this embed.
•1/13/23, 6:40 AM

??[HttpGet] and the route params defined there[HttpGet]
public async Task<ActionResult> OnGet([FromQuery] int[] foo)
{
// ...
}xhr.open('GET', `https://localhost:44385/Exam/GetExamResultByAdmin?id=${subId}&id=${Uid}`, true);xhr.open('GET', `https://localhost:44385/Exam/GetExamResultByAdmin/${subId}&${Uid}`, true);[HttpGet("{id}/{uid}")]
public async Task<...> OnGet(int id, int uid)
{
}xhr.open('GET', `https://localhost:44385/Exam/GetExamResultByAdmin/${subId}&${Uid}`, true);[HttpGet("{id}/{uid}")]
public async Task<...> OnGet(int id, int uid)
{
}const data = await fetch(`/things/${id}/${slug}`);[Route("[controller]")]
public class ThingsController : ControllerBase
{
[HttpGet("{id}/{slug}")]
public async Task<IActionResult<Thing>> GetThing(int id, string slug)
{
return await _context.Things
.Where(t => t.Id == id && t.Slug == slug)
.FirstOrDefaultAsync();
}
}