I have a code in JS like this:
$.ajax({ url: $("body").data("url") + "/Documents/CheckDoc", data: { docID: id