// Bind: body public IActionResult ComplexBody([FromBody] GreetingInputModel model) { return(Content($"Complex-Body: {model.Type} {model.To}")); }
// Bind: query public IActionResult ComplexQuery([FromQuery] GreetingInputModel model) { return(Content($"Complex-Query: {model.Type} {model.To}")); }
// Bind: form public IActionResult ComplexForm([FromForm] GreetingInputModel model) { return(Content($"Complex-Form: {model.Type} {model.To}")); }
// Bind: query, form public IActionResult Complex(GreetingInputModel model) { return(Content($"Complex-Default: {model.Type} {model.To}")); }