Exemple #1
0
 public IActionResult FromFormAction([FromForm] RequestModel model)
 {
     return(null);
 }
Exemple #2
0
 public IActionResult FromQueryAction([FromQuery] RequestModel model)
 {
     return(null);
 }
Exemple #3
0
 public IActionResult ActionWithMultipleParameters(int id, string text, [FromBody] RequestModel model)
 {
     return(null);
 }
Exemple #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);
        }
Exemple #5
0
 public IActionResult ActionWithModel(int id, [FromBody] RequestModel model)
 {
     return(null);
 }