This post describes how to use dependency injection with ValidationAttributes in ASP.NET Core, and the process I took in trying to figure out how!
http://andrewlock.net/injecting-services-into-validationattributes-in-asp-net-core/
This post describes how to use dependency injection with ValidationAttributes in ASP.NET Core, and the process I took in trying to figure out how!
http://andrewlock.net/injecting-services-into-validationattributes-in-asp-net-core/