Используя JQuery, я передаю значения в действие в контроллере.customerId и productId не равны нулю:
$.ajax({
type: "GET",
url: "Customer/Product/",
data: { Customer: customerID, Product: productId},
dataType: "json",
error: function (xhr, status, error) {
// you may need to handle me if the json is invalid
// this is the ajax object
},
success: function (json) {
$("#productName").innerHTML = json;
alert(json);
alert($("#startDate").innerHTML);
}
});
В контроллере MVC3 у меня есть действие:
public ActionResult Product(string Customer, string Product)
{
//both are null
}
Я не знаю, почему оба значения равны нулю?Пожалуйста, руководство