// GET: Movies/Create
        public ActionResult Create()
        {
            MoviesCreateViewModel moviesCreateViewModel = new MoviesCreateViewModel();

            moviesCreateViewModel.Genres = new SelectList(this._genreManager.ReadAll(), "Id", "Name");

            return View(moviesCreateViewModel);
        }
        public ActionResult Create([Bind(Include = "Title,Year,Price,ImageUrl,Trailer,GenreId")] MoviesCreateViewModel moviesCreateViewModel)
        {
            if (moviesCreateViewModel == null)
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);

            if (ModelState.IsValid)
            {
                //Use AutoMapper to copy properties.
                Movie movie = Mapper.Map<Movie>(moviesCreateViewModel);
                
                this._manager.Create(movie);

                return RedirectToAction("Index");
            }

            moviesCreateViewModel.Genres = new SelectList(this._genreManager.ReadAll(), "Id", "Name");

            return View(moviesCreateViewModel);
        }