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);
        }
        public ActionResult Subscriptions()
        {
            //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.IsSuperAdmin)
            {
                adminUserId = LicenseSessionState.Instance.User.UserId;
            }
            else
            {
                adminUserId = LicenseSessionState.Instance.SelectedTeam.AdminId;
            }
            var subscriptionList = OnPremiseSubscriptionLogic.GetSubscription(adminUserId).AsEnumerable();

            return(View(subscriptionList));
        }