Пример #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);
 }