public void Apply(Order order) { if (order.Items.Any(x => x.Type == ItemType.Membership)) { foreach (var item in order.Items) { if (item.Type == ItemType.Membership) { _userService.ActivateMembership(item.Id); } } } }