예제 #1
0
        private void AddMovie()
        {
            this.AddCmdCommand();
            Movie movie = new Movie();

            movie.Name = movieController.MovieRead();
            Console.WriteLine("Enter actors:");
            movie.Actors = movieController.ActorsRead();
            Console.WriteLine("Enter director:");
            movie.Director    = movieController.DirectorRead();
            movie.Description = movieController.DescriptionRead();
            movie.Genre       = genreController.GenreRead();
            var userName = username;
            var user     = userController.GetUser(userName);

            movie.UserId    = user.Id;
            movie.MovieTags = new List <MovieTag>();
            movieController.AddMovie(movie);
            this.ReturnToMainScreen();
        }