What I am trying is to pass a parameter to the controller from typescript. But it's not passing to method.
below is my typescript code,
multiCountryConfig() {
var multiCountry = "Test";
this.http.get('/Home/MultiCountryConfiguration', {
params: {
multiCountry: multiCountry,
}
}).subscribe(result => {
console.log(result)
}, error => {
console.log(error)
});
}
below one is my homecontroller method code,
[HttpGet]
public IActionResult MultiCountryConfiguration(string multiCountry)
{
var key = "test";
var value = "en-gb";
CookieOptions options = new();
options.Expires = DateTime.Now.AddHours(1);
HttpContext.Response.Cookies.Append(key, value, options);
return Ok("created");
}
I don't know whether it's correct. Please someone guide me on this. Thank you.

