예제 #1
0
        /// <summary>
        /// Get sub-campaign internal user records
        /// </summary>
        public static ObjectResult GetSubCampaignUsers(int SubCampaignId, eUserType UserType)
        {
            BrightPlatformEntities m_objBrightPlatformEntity = new BrightPlatformEntities(UserSession.EntityConnection);
            ObjectResult objSubCampaignUsers = null;

            switch (UserType)
            {
                case eUserType.InternalUser:
                {
                    objSubCampaignUsers = m_objBrightPlatformEntity.FIGetSubCampaignInternalUsers(SubCampaignId);
                    break;
                }
                case eUserType.CustomerUser:
                {
                    objSubCampaignUsers = m_objBrightPlatformEntity.FIGetSubCampaignCustomerUsers(SubCampaignId);
                    break;
                }
            }

            return objSubCampaignUsers;
        }