How to use Model Validation ASP.NET MVC - Part 24

preview_player
Показать описание

When MVC creates the model state for the submitted properties, it also goes through each property in the ViewModel and validates the property using attributes associated to it. If any errors are found, they are added to the Errors collection in the property's ModelState
Рекомендации по теме
welcome to shbcf.ru