public ActionResult Create(string fillButton, string title, IPrincipal user)
        {
            if (!String.IsNullOrEmpty(fillButton) && !String.IsNullOrEmpty(title))
            {
                Movie tempMovie = this._moviesService.Search(title);
                ModelState.Clear();
                return View(tempMovie);
            }

            Movie newMovie = new Movie();
            TryUpdateModel(newMovie);

            if (ModelState.IsValid)
            {
                var owner = this._groupsService.GetUserInfo(user.Identity.Name);
                newMovie.Owner = owner;
                newMovie.OwnerId = owner.UserId;
                this._moviesService.Add(newMovie);
                return RedirectToAction("Details", new { id = newMovie.ID });
            }
            else
            {
                return View(newMovie);
            }
        }
 public void Update(Movie movie)
 {
     _moviesRepository.Save();
 }
 public void Add(Movie newMovie)
 {
     _moviesRepository.Add(newMovie);
     _moviesRepository.Save();
 }
 public void Update(Movie movie)
 {
     
 }
 public void Add(Movie newMovie)
 {
     newMovie.ID = Interlocked.Increment(ref _newId);
     _movies.Add(newMovie);
 }