I am working on a website with 2 sub projects. The sub projects are referenced like this:
=> my website has a reference to project Business Layer
=> project Business Layer has a reference to project Data Layer
Visitors are required to log in. There information is saved in DB. In my DB I have different configuration information that is needed to make the website calculate the right information.
Example:
User A logs in into website and configuration information is stored in the object name : UserInfo. The UserInfo class is also a part of my Business Layer.
After that I always have to create my object from cookie or Session and call my Business Layer object like this:
BL.CalculatePrice(UserInfo.RegionID)
BL.CalculateTotal(UserInfo.RegionID)
Is there a way to keep the state of the "user" object, between webpage changes, in my Business Layer project without the need to send the reference (UserInfo.RegionID) with each call from the website?