public IList <SubscriptionDetails> GetLicenseListBySubscription(string userId, bool bulkLicenseAdd)
        {
            TempData["UserId"]     = userId;
            TempData["CanAddBulk"] = bulkLicenseAdd;
            ViewData["TeamMember"] = userId == null ? string.Empty : LicenseSessionState.Instance.User.Email;
            //Logic to get the Subscription details Who are Team Member and Role is assigned as admin by the Super admin
            string adminUserId = string.Empty;

            if (LicenseSessionState.Instance.SelectedTeam != null)
            {
                adminUserId = LicenseSessionState.Instance.SelectedTeam.AdminId;
            }

            IList <SubscriptionDetails> licenseMapModelList = null;

            if (bulkLicenseAdd)
            {
                licenseMapModelList = OnPremiseSubscriptionLogic.GetSubscription(adminUserId);
            }
            else
            {
                licenseMapModelList = OnPremiseSubscriptionLogic.GetSubscriptionForLicenseMap(userId, adminUserId);
            }
            return(licenseMapModelList);
        }
예제 #2
0
        public IList <SubscriptionDetails> GetLicenseListBySubscription(string userId)
        {
            TempData["UserId"] = userId;
            //Logic to get the Subscription details Who are Team Member and Role is assigned as admin by the Super admin
            string adminUserId = string.Empty;
            IList <SubscriptionDetails> licenseMapModelList = OnPremiseSubscriptionLogic.GetSubscriptionForLicenseMap(userId, adminUserId);

            return(licenseMapModelList);
        }