How to create an attribute in ASP.NET MVC that checks if session var is available?

I think its an overkill to use attribute in this scenario. It will work, don't get me wrong, its just not really decoration nor attribute of certain property of some model, but rather piece of business logic that belongs to business logic layer. If this piece is repeating few times, externalize it to separate method or class, based on utility and ease for others to understand.

I think Attribute doesn't makes it easy to understand, but actually more misleading than useful. IMHO.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions