Hey there! I'm facing an issue where when I post a JavaScript object to an ASP.NET Web API, some property values are blank like the example below:
var o={
ID=1,
Fname="Tom",
Mname="",
Lname="Wilson"
}
However, in the Web API model binding process, the blank value for Mname gets changed to null
. I want to preserve the original value in the API model. Can anyone help me with this? Are there any options in JavaScript that can help with this?