Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

how can I access to the localization (L)method IN dto #4067


User avatar
0
reyada created

We using ASPZero ASP.NET MVC 5.x & jQuery we use the model annotation "DTO" to validation client & server side

how can I access to the localization (L)method from data annotation class "DTO" ( application service ) example : [Required(ErrorMessage =<<Localization string >>]


1 Answer(s)
  • User Avatar
    0
    strix20 created

    Attribute parameters must be constants, so you can't use the L method inside of an attribute.