0
Kann nicht scheinen, um die Antwort zu finden, ich bin für hier suchen ...jQuery Ajax-Aufruf Pass Parameter
NULL
meiner ASP.net-Controller übergeben wird - iid
hat einen Wert haben.
function Dismiss(iid) {
$.ajax({url: '@Url.Action("DismissNotification")', type: 'GET',Data: {id:iid}, success: function(result){
$('#' + id).hidden();
}});
}
[Authorize]
[HttpGet]
public bool DismissNotification(string id)
{
if (!string.IsNullOrEmpty(id))
{
_notificationService.Dismiss(id);
return true;
}
return false;
}
Irgendwelche Ideen?