public ActionResult DeleteMovie(int MovieId)
        {
            Movie deletedMovie = _repository.DeleteMovie(MovieId);

            if (deletedMovie == null)
            {
                return(HttpNotFound());
            }
            TempData["message"] = string.Format("Фильм \"{0}\" удален", deletedMovie.Name);
            return(RedirectToAction("Index"));
        }