示例#1
0
        public bool INeedToApproveRemoveAllList(int storeID)
        {
            List <string> users;

            if (WaitingForApproval.TryGetValue(storeID, out users))
            {
                return(WaitingForApproval.Remove(storeID));
            }
            return(false);
        }
示例#2
0
        public List <string> GetAllWaitingForApproval(int storeID)
        {
            List <string> users;

            if (!WaitingForApproval.TryGetValue(storeID, out users))
            {
                users = new List <string>();
            }
            return(users);
        }
示例#3
0
        //Need to Approve other users as Current Store owner.
        public void INeedToApproveInsert(int storeID, string user)
        {
            List <string> users;

            if (WaitingForApproval.TryGetValue(storeID, out users))
            {
                WaitingForApproval[storeID].Add(user);
                return;
            }
            users = new List <string>();
            users.Add(user);
            WaitingForApproval.Add(storeID, users);
        }