Gnanavel Sekar

Gnanavel Sekar

  • NA
  • 8.4k
  • 7.1m

Getting null while passing json model to web-api

Mar 27 2017 9:36 AM
Hi,
am getting null value while passing json model to web-api, can you anyone tell me the issue?
 
var customer = { Project_Feedback_Description: "Scott", Project_Feedback_CreatedBy: "HP" };
$.ajax({
type: 'POST',
url: APIURL + "/InsertProjectFeedBack",
dataType: 'json',
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ test: customer }),
success: function (result) {
}
look out my api