We recently switched our project from VB.NET WebForms to C# MVC 5. I couldn’t be happier with the results.
Not having to deal with the page life-cycle and viewstate has been a dream. 209 more words
This is .Net, but the principle applies to any language with DI containers.
In this post, I want to demonstrate usage of Action Filters using very popular and often useful example of filtering users by IP address.
To keep the example simple, I will create a filter, that will check and allow only IP addresses stored in web.config file. 582 more words