Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

When Need Complex DataValidation Should it implement with in Data validation Class or in Controller

$
0
0

Hello

When we have Complex Data Validation that required DI. Should we implemented it directly in the controller ?

or better to create custom Validation Attribute ? second seems better way but I have difficulties to past DI parameters to that class.

Thank you in Advance.

 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>