/// <summary>Adds a movie to the database.</summary> /// <param name="movie">The movie to add.</param> public void Add(Movie movie) { //validate if (movie == null) { throw new ArgumentNullException("movie"); } ObjectValidator.Validate(movie); //TODO: Validate //if (movie == null) // return; try { AddCore(movie); } catch (Exception e) { throw new Exception("Add failed", e); }; }