public bool RemoveOtherApprovalList(int storeID) { List <string> users; if (NeedToApprove.TryGetValue(storeID, out users)) { return(NeedToApprove.Remove(storeID)); } return(false); }
//Get Function that Added public List <string> getAllThatNeedToApprove(int storeID) { List <string> users; if (!NeedToApprove.TryGetValue(storeID, out users)) { users = new List <string>(); } return(users); }
//Waiting for Approval List functions to become Store Owner public void InsertOtherApprovalRequest(int storeID, List <string> user) { List <string> users; if (NeedToApprove.TryGetValue(storeID, out users)) { return; } NeedToApprove.Add(storeID, user); }