public IActionResult Index( //[FromBody] // Note: // The [FromBody] attribute means directing the default behavior of Model Binding to use // the formatters/InputFormatter instead. In this case our custom Model Binder does not work. // To use our custom model binder, remove the [FromBody] Attribute. // And now he default value providers get data from a form-URL-encoded body, route values, and the query string. YeKeModelBinderViewModel model) { return(Json(model)); }
public IActionResult TestApplyCorrectYeKeFilterAttribute([FromBody] YeKeModelBinderViewModel model) { return(Json(model)); }