Ejemplo n.º 1
0
        public void ViewAllVideos()
        {
            Screen.ClearScreen();
            bool isFinished = false;

            while (!isFinished)
            {
                Screen.AdminMenuShowVideos();
                var selection = InputParser.ToInteger(0, 3);
                switch (selection)
                {
                case 1:
                    var movies = _movieRepository.GetAllMovies();
                    _movieService.PrintMoviesInfo(movies);
                    break;

                case 2:
                    AddNewVideo();
                    break;

                case 3:
                    DeleteVideo();
                    break;

                case 0:
                    isFinished = !isFinished;
                    break;
                }
            }
        }