public void AddStoreOwnership(string store) { StoreManagerPolicy storeOwnershipPermission = new StoreManagerPolicy(store, StoreManagerPolicy.StoreAction.StoreOwner); StorePolicies.Add(storeOwnershipPermission); _userDB.SaveUserStorePolicy(_userID, storeOwnershipPermission); }
public void LoadPolicies(StatePolicy[] loadedStates, StoreManagerPolicy[] loadedStorePermissions) { foreach (StatePolicy loadedState in loadedStates) { StatesPolicies.Add(loadedState); } foreach (StoreManagerPolicy loadedStorePermission in loadedStorePermissions) { StorePolicies.Add(loadedStorePermission); } }