public StoreApp GetAppByAumid(string appUserModelId) { // first attempt to get an app in our list already foreach (var storeApp in _appList) { if (storeApp.AppUserModelId == appUserModelId) { return(storeApp); } } // not in list, get from StoreAppHelper StoreApp app = StoreAppHelper.GetStoreApp(appUserModelId); if (app != null) { _appList.Add(app); return(app); } // no app found for given AUMID return(null); }
public void FetchApps() { _appList.Clear(); _appList.AddRange(StoreAppHelper.GetStoreApps()); }