• How to Implement the Repository Pattern in ASP.NET MVC Application

    The Repository Pattern is one of the most popular patterns to create an enterprise level application. It restricts us to work directly with the data in the application and creates new layers for database operations, business logic, and the application’s UI. If an application does not follow the Repository Pattern, it may have the following problems:

    • Duplicate database operations codes
    • Need of UI to unit test database…
    • Mon, Mar 7 2016
  • How to Create a Custom Action Filter in ASP.NET MVC

    In ASP.NET MVC, Filters are used to inject logic at different levels of request processing and allow us to share logics across Controllers. For example, let’s say we want to run a security logic or a logging logic across the controller. To do so, we’ll write a filter containing those logics and enable them across all controllers. When we enable a filter across all controllers or actions, the filter enables the upcoming…

    • Fri, Mar 4 2016