Exemple #1
0
 public CoreSession(string cityId,
                    Guid?companyId, string companyName,
                    Guid?storeId, string storeName,
                    string brokerId, string brokerName,
                    string organizationId, string organizationName,
                    string currentUserId, string currentUserName)
 {
     City         = new SessionCity(cityId);
     Company      = new SessionCompany(companyId, companyName);
     Store        = new SessionStore(storeId, storeName);
     Broker       = new SessionBroker(brokerId, brokerName);
     Organization = new SessionOrganization(organizationId, organizationName);
     User         = new SessionUser(currentUserId, currentUserName);
 }
Exemple #2
0
 public CoreSession(string cityId,
                    Guid?companyId, string companyName,
                    Guid?departmentId, string departmentName,
                    Guid?bigRegionId, string bigRegionName,
                    Guid?regionId, string regionName,
                    Guid?storeId, string storeName,
                    Guid?groupId, string groupName,
                    string brokerId, string brokerName,
                    string currentUserId, string currentUserName)
 {
     City         = CoreSessionContainer.Create(cityId);
     Company      = CoreSessionContainer.Create(companyId, companyName);
     Broker       = CoreSessionContainer.Create(brokerId, brokerName);
     Organization = new SessionOrganization(
         departmentId, departmentName,
         bigRegionId, bigRegionName,
         regionId, regionName,
         storeId, storeName,
         groupId, groupName);
     User = CoreSessionContainer.Create(currentUserId, currentUserName);
 }