コード例 #1
0
 public IActionResult FromFormAction([FromForm] RequestModel model)
 {
     return(null);
 }
コード例 #2
0
 public IActionResult FromQueryAction([FromQuery] RequestModel model)
 {
     return(null);
 }
コード例 #3
0
 public IActionResult ActionWithMultipleParameters(int id, string text, [FromBody] RequestModel model)
 {
     return(null);
 }
コード例 #4
0
        // MVC has bug - uncomment when resolved
        //[MyRouteConstraint("id", "5")]
        //public IActionResult ActionWithConstraint(int id)
        //{
        //    return null;
        //}

        public IActionResult FromRouteAction([FromRoute] RequestModel model)
        {
            return(null);
        }
コード例 #5
0
 public IActionResult ActionWithModel(int id, [FromBody] RequestModel model)
 {
     return(null);
 }