public virtual async Task <PagedResult <LoyaltyCard> > GetLoyaltyCardStatus(IEnumerable <string> loyaltyCardNumbers) { ManagerFactory managerFactory = Utilities.GetManagerFactory(this.EcommerceContext); IStoreOperationsManager storeOperationsManager = managerFactory.GetManager <IStoreOperationsManager>(); List <LoyaltyCard> loyaltyCards = new List <LoyaltyCard>(); foreach (string loyaltyCardNumber in loyaltyCardNumbers) { loyaltyCards.Add(await storeOperationsManager.GetLoyaltyCard(loyaltyCardNumber)); } PagedResult <LoyaltyCard> loyaltyCardPagedResult = new PagedResult <LoyaltyCard>(loyaltyCards); return(loyaltyCardPagedResult); }