public async Task <StoreApp> GetAppDetailsAsync(AppQueryParameters appQueryParameters) { var app = (await RemoteUserService.GetAppDetailAsync(appQueryParameters.GetAppQueryParametersDC())).GetStoreApp(); this.Close(); return(app); }
public async Task <IEnumerable <StoreApp> > GetRandomAppsAsync(AppQueryParameters appQueryParameters) { var appsDC = await RemoteUserService.GetRandomAppsAsync(appQueryParameters.GetAppQueryParametersDC()); var apps = appsDC.Select(appDC => appDC.GetStoreApp()).ToList(); foreach (var app in apps) { app.Icon128x128 = await app.Icon128x128Bytes.ConvertToBitmapImageAsync(); } this.Close(); return(apps); }