Hi i try send data to method in controller
var data = {
Id: e.row.key.Id
}
window.location.href = '@Url.Action("Show", "Calculations", new {param1 = data})';
//here in javascript I have error, near 'data'
error
the name 'data' does not exist in current context
Controller
[HttpGet]
public async Task<ActionResult> Show(string data)
I tried
window.location.href = '@Url.Action("Show", "Calculations")' +"/"+ data;
but in method in Show(string data) i have null value in 'data'