public string PostTestWithBodyAndParams(string value, [FromBody] PostTestObject model) { return($"your name is {model.Name} and key is {model.Key}, and the value is {value}"); }
public string PostTestWithBody([FromBody] PostTestObject model) { return($"your name is {model.Name} and key is {model.Key}"); }