private void ShowAllContent() { _console.Clear(); List <StreamingContent> listOfContent = _streamingRepo.GetContent(); foreach (StreamingContent contentVariable in listOfContent) { _console.WriteLine("-----------------"); DisplayContent(contentVariable); } _console.WriteLine("Press any key to continue..."); _console.ReadKey(); }
private void ShowAllContent() { _console.Clear(); //Get all items from our fake database List <StreamingContent> listOfContents = _streamingRepo.GetContent(); //Take each item from fake database and display property values foreach (StreamingContent content in listOfContents) { DisplaySimple(content); } //Puase the program so the user can see the printed objects _console.WriteLine("Press any key to continue..."); _console.ReadKey(); //Show all items in our fake database }