You need to passthe postdata through the data. Like:-
var _submitNote = function () {
var url = window.location.href;
var taskID = parseInt(url.match(/\d+\.?\d*/g)[1]);
var postData = {
IT_TaskID: 1,
Note: $('#note').val()
};
$.ajax({
url: "/Tasks/CreateNote",
type: "GET",
data: postData,
success: function (response) {
$('#dialog').hide();
$('#notes').html(response);
}
});
};
as the parameter expects the model or object of IT_Note.
Please try with this.
Hope this helps.
Post back your queries if any.
Thanks.