public List <string> RetrieveAllStore(decimal userID) { LibraryMethods libraryMethods = new LibraryMethods(); User selectedUser = libraryMethods.selectedUser(); List <string> gameNameList = new List <string>(); List <string> PurchasedList = _services.GetLibraryGameList(selectedUser); List <Game> gameList = _services.GetGameList(); foreach (var item in gameList) { gameNameList.Add(item.Name); } foreach (var item2 in gameList) { foreach (var item3 in PurchasedList) { if (item2.Name == item3) { gameNameList.Remove(item2.Name); } } } return(gameNameList); }
public List <string> RetrieveAllLibrary() { LibraryMethods libraryMethods = new LibraryMethods(); User selectedUser = libraryMethods.selectedUser(); return(_services.GetLibraryGameList(selectedUser)); }