/// <summary>
        /// Adds the new movie.
        /// </summary>
        /// <param name="movie">The movie.</param>
        /// <returns>The movie that has been added.</returns>
        public Movie AddNewMovie(Movie movie)
        {
            using (var context = new ClientSideDevelopmentContext())
            {
                context.Movies.Add(movie);
                context.SaveChanges();
            }

            return movie;
        }
 /// <summary>
 /// Adds the new movie.
 /// </summary>
 /// <param name="title">The movie title.</param>
 /// <param name="releaseYear">The release year.</param>
 /// <param name="rating">The rating.</param>
 /// <returns>
 /// The movie that has been added.
 /// </returns>
 public Movie AddNewMovie(string title, int releaseYear, int rating)
 {
     var movie = new Movie { Title = title, ReleaseYear = releaseYear, Rating = rating };
     return this.movieRepository.AddNewMovie(movie);
 }