Answer
Model binding maps HTTP data to method parameters.
[FromBody]binds JSON/XML[FromQuery]binds query parameters[FromRoute]binds URL segments
Validation uses DataAnnotations and ModelState.IsValid.
Model binding maps HTTP data to method parameters.
[FromBody] binds JSON/XML[FromQuery] binds query parameters[FromRoute] binds URL segmentsValidation uses DataAnnotations and ModelState.IsValid.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ