Пример #1
0
 public string PostTestWithBodyAndParams(string value, [FromBody] PostTestObject model)
 {
     return($"your name is {model.Name} and key is {model.Key}, and the value is {value}");
 }
Пример #2
0
 public string PostTestWithBody([FromBody] PostTestObject model)
 {
     return($"your name is {model.Name} and key is {model.Key}");
 }