I don't know its a stupid question or not ,for a clarification i am asking here. Please advice on the following situation.
I came up with a situation, that [FromBody] attribute can be specified to decorate a parameter inside the function and get the complex/simple data from the client. I do accepted it in both the ways and processed .
Is there any way that , i don't want to specify as a parameter in my POST function , and still be able to the body content in server side ?
public HttpResponseMessage GetDetails([FromUri]int id)
Var BodyJsonString = // I need to get the body string inside my function,
but not specify in parameter list.
// Later i map the JsoNString to class and parse it/.
Also i want to make the BODY is mandatory while calling my POST API. Tried [Required] inside the function parameter , but its for my above listed case.