I am familiar with three layers viz. view model & controller.
Now i want to separate another two layers viz. Security layer & Business logic layer apart from these.
So how do i do this?
Let's say controller is ok but which user have that privilege, is i want to decide in security layer & if it pass this layer it goes to business layer in which complex query will be executed like business rules.
so can any one help me with small code?