public bool INeedToApproveRemoveAllList(int storeID) { List <string> users; if (WaitingForApproval.TryGetValue(storeID, out users)) { return(WaitingForApproval.Remove(storeID)); } return(false); }
public List <string> GetAllWaitingForApproval(int storeID) { List <string> users; if (!WaitingForApproval.TryGetValue(storeID, out users)) { users = new List <string>(); } return(users); }
//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); }