Asp.NET MVC - Validate a Model Outside of the Controller

后端 未结 4 1232
萌比男神i
萌比男神i 2021-02-04 08:03

I am building an ASP.NET MVC project and going for the following Architecture:

  • A Core project that has models, validation, dto, logic, etc.
  • <
4条回答
  •  时光取名叫无心
    2021-02-04 08:49

    Making a mixed Validation could be also useful, so mixing DataAnnotations with custom validations logic

    This may be helpful http://www.devtrends.co.uk/blog/the-complete-guide-to-validation-in-asp.net-mvc-3-part-2

提交回复
热议问题