In this article, we will explore how to validate Asp.net MVC Application Using Fluent Validation.
If you want to do simple validation in our asp.net MVC application then Data Annotation is good but when it comes to applying complex validation to manage it with Data Annotation is a little bit difficult.
for complex validation it is good to use FLuent Validation.
We’ll learn how to build a DLL (library) and how to utilize it in another project in this lesson.
Dependency Injection is a design pattern. It allows the creation of dependent objects outside of a class and provides those objects to a class in different ways. Using DI, we can move the creation and binding of the dependent objects outside of the class that is dependent on them.