-3
Я не могу использовать любое значение из json.Values приходят «null». В чем проблема?В Mvc я не могу получить значения из объекта JSON
MY: Jquery код в siparis.cshtml
var array_table = [];
array_table.push({
arrayName: "Name Value",
arrayMail: "Mail Value",
arrayMobile: "mobile Value"
});
}
$.ajax({
url: '@Url.Action("SiparisOlustur")', type: "POST", dataType: "json",
data: JSON.stringify(array_table),
type: 'POST',
contentType: "application/json; charset=utf-8",
success: function (data) {
$('#POCStatus').html('<div class="success">POC Removed Successfully.</div>');
},
error: function() {
$('#POCStatus').html('<div class="field-validation-error">Some Error Occured in Removing POC.</div>');
}
});
Мои JSON Модель:
public class JsonModel
{
public string arrayName { get; set; }
public string arrayMail { get; set; }
public string arrayMobile { get; set; }
}
Мой SiparisController:
[HttpPost]
public ActionResult SiparisOlustur(List<JsonModel> array_table)
{
return View();
}
Результат таков:
ARRAY_TABLE И.С. ВХОД NUL L
Thank you, С уважением, B.Y.