Can't seem to find the answer I'm looking for on here...
NULL is passed to my ASP.net controller - iid does have a value.
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;
}
Any ideas?