private List <Models.SavedItemViewModel> PrepItems(List <WishListItem> items) { List <Models.SavedItemViewModel> result = new List <Models.SavedItemViewModel>(); if (items == null) { return(result); } foreach (var item in items) { Models.SavedItemViewModel m = new Models.SavedItemViewModel(); m.SavedItem = item; m.FullProduct = new MerchantTribeStore.Models.SingleProductViewModel(MTApp.CatalogServices.Products.Find(item.ProductId), MTApp); result.Add(m); } return(result); }
private List<Models.SavedItemViewModel> PrepItems(List<WishListItem> items) { List<Models.SavedItemViewModel> result = new List<Models.SavedItemViewModel>(); if (items == null) return result; foreach (var item in items) { Models.SavedItemViewModel m = new Models.SavedItemViewModel(); m.SavedItem = item; m.FullProduct = new MerchantTribeStore.Models.SingleProductViewModel(MTApp.CatalogServices.Products.Find(item.ProductId), MTApp); result.Add(m); } return result; }