public IActionResult FromFormAction([FromForm] RequestModel model) { return(null); }
public IActionResult FromQueryAction([FromQuery] RequestModel model) { return(null); }
public IActionResult ActionWithMultipleParameters(int id, string text, [FromBody] RequestModel model) { return(null); }
// MVC has bug - uncomment when resolved //[MyRouteConstraint("id", "5")] //public IActionResult ActionWithConstraint(int id) //{ // return null; //} public IActionResult FromRouteAction([FromRoute] RequestModel model) { return(null); }
public IActionResult ActionWithModel(int id, [FromBody] RequestModel model) { return(null); }