Reputation: 4565
I have ViewModel which inherits from IValidatableObject. In this model I have to make custom validation and it's require Session variables and User.Identity. I could not find appropriate way how to access this variables. I thought something about static class where would be getter properties, but I am not sure it's valid way.
Upvotes: 1
Views: 515