/// <summary> /// Get identifiers of assigned customer roles. /// </summary> /// <param name="onlyActiveCustomerRoles"><c>true</c> ignores all inactive roles</param> /// <returns>Customer role identifiers.</returns> public int[] GetRoleIds(bool onlyActiveCustomerRoles = true) { return(CustomerRoleMappings .Select(x => x.CustomerRole) .Where(x => !onlyActiveCustomerRoles || x.Active) .Select(x => x.Id) .ToArray()); }
public void Clear() { Languages.Clear(); Currencies.Clear(); StoreMappings.Clear(); CustomerRoleMappings.Clear(); Manufacturers.Clear(); Categories.Clear(); DeliveryTimes.Clear(); Translations.Clear(); CustomProperties.Clear(); }