Base solution for your next web application
Open Closed

ICustomValidate and SettingManager #3634


User avatar
0
Ricavir created

Hi,

I'm doing an ApplicationService. I would like to validate a DTO input according to some application settings. To do so, I implement ICustomValidate on my DTO class but I'm not able to get my setting value with SettingManager.GetSettingValueAsync...

Do you know how to proceed ?

If not possible, I could do a data validation directly on the ApplicationService before inserting data on the database... what is your advice ?

Thanks


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Ricavir,

    It is better to do it in app service method.