0

Hi I post an javascript object to asp.net web API,in that object some property value is blank like bellow

var o={
ID=1,
Fname="Tom",
Mname="",
Lname="Wilson"
}

but in web API model binding Mname blank value change as null .I don't want this ,I want original value in API model.

please help me ,how do I do this?Is there any option for javascript?

1
  • 1
    You need to fix this code in your web API. Post the code for that endpoint. Commented Nov 10, 2021 at 18:50

1 Answer 1

0

solution can be found in bellow link

https://stackoverflow.com/a/44397786/4336330 for Asp.Net Core

https://stackoverflow.com/a/12734370/4336330 for Asp.Net MVC

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.