Ok, Im fairly new making Ajax calls and I wanted to know if it is possible to send more than 1 parameter in an Ajax call.
in my $.Ajax im sending an object and a string.
$.ajax({
type: 'POST',
url: urlAction,
cache: false,
data: JSON.stringify(customer,telephone),
contentType: "application/json; charset=utf-8",
success: function (data) {
//Do something
},
error: function (xhr, ajaxOptions, thrownError) {
//Do something
}
});
Is it possible to send more than 1 parameter in data? or in this case it would be best to consider telephone as part of the customer DTO?
My JsonResult is trying to receive a customer and a string telephone, but telephone is null