I have a Controller in a ASP.NET Core WebAPI. On a HttpPost
I receive the body of the post via the [FromBody]
referenced input variable.
For the purposes of this question, let's assume I'm expecting to receive the following JSON submission with null
being a valid value.
{
"start": null,
"finish": "Far far away"
}
When submitted and start
is not present the C# variable simply reflect a null
for start
.
How can I go about finding out if the start
property was present or not in the HttpPost
?