public virtual Store ToModel(Store store)
        {
            if (store == null)
            {
                throw new ArgumentNullException(nameof(store));
            }

            store.Id                             = Id;
            store.AdminEmail                     = AdminEmail;
            store.Catalog                        = Catalog;
            store.Country                        = Country;
            store.CreatedBy                      = CreatedBy;
            store.CreatedDate                    = CreatedDate;
            store.DefaultCurrency                = DefaultCurrency;
            store.DefaultLanguage                = DefaultLanguage;
            store.Description                    = Description;
            store.DisplayOutOfStock              = DisplayOutOfStock;
            store.Email                          = Email;
            store.ModifiedBy                     = ModifiedBy;
            store.ModifiedDate                   = ModifiedDate;
            store.Name                           = Name;
            store.Region                         = Region;
            store.SecureUrl                      = SecureUrl;
            store.TimeZone                       = TimeZone;
            store.Url                            = Url;
            store.MainFulfillmentCenterId        = FulfillmentCenterId;
            store.MainReturnsFulfillmentCenterId = ReturnsFulfillmentCenterId;

            store.StoreState    = EnumUtility.SafeParse(StoreState.ToString(), Core.Model.StoreState.Open);
            store.Languages     = Languages.Select(x => x.LanguageCode).ToList();
            store.Currencies    = Currencies.Select(x => x.CurrencyCode).ToList();
            store.TrustedGroups = TrustedGroups.Select(x => x.GroupName).ToList();
            store.AdditionalFulfillmentCenterIds = FulfillmentCenters.Where(x => x.Type == FulfillmentCenterType.Main).Select(x => x.FulfillmentCenterId).ToList();
            store.ReturnsFulfillmentCenterIds    = FulfillmentCenters.Where(x => x.Type == FulfillmentCenterType.Returns).Select(x => x.FulfillmentCenterId).ToList();
            // SeoInfos
            store.SeoInfos = SeoInfos.Select(x => x.ToModel(AbstractTypeFactory <SeoInfo> .TryCreateInstance())).ToList();

            return(store);
        }
 public FulfillmentCenter[] GetFulfillmentCentersByIds(string[] ids)
 {
     return(FulfillmentCenters.Where(x => ids.Contains(x.Id)).ToArray());
 }