Пример #1
0
        /// <summary>
        /// Inserts a new Movie
        /// </summary>
        /// <param name="id">Movie Id</param>
        /// <param name="title">Movie Title</param>
        public static void Insert(string title)
        {
            Movie newMovie = new Movie(title);

            newMovie.Save();
        }
Пример #2
0
        /// <summary>
        /// Updates a particular customer
        /// </summary>
        /// <param name="id">Movie Id</param>
        /// <param name="title">Movie Title</param>
        public static void Update(int id, string title)
        {
            Movie movieToUpdate = new Movie(id, title);

            movieToUpdate.Save();
        }