示例#1
0
        public static void UpdateMovie()
        {
            Movie movieToUpdate = SelectMovieById.SelectMovie("update");

            if (movieToUpdate != null)
            {
                Movie updatedMovie = ItemDataCapture.Movie();
                MovieRepository.UpdateMovie(movieToUpdate.Id, updatedMovie);
                StandardMessages.UpdatedMessage("movie");
            }
        }
示例#2
0
        public static void UpdateMember()
        {
            Member memberToUpdate = SelectMemberById.SelectMember("update");

            if (memberToUpdate != null)
            {
                Member updatedMember = MemberDataCapture.Member();
                MemberRepository.UpdateMember(memberToUpdate.Id, updatedMember.Name, updatedMember.Age);
                StandardMessages.UpdatedMessage("member");
            }
        }
示例#3
0
        public static void UpdateBook()
        {
            Book bookToUpdate = SelectBookById.SelectBook("update");

            if (bookToUpdate != null)
            {
                Book updatedBook = ItemDataCapture.Book();
                BookRepository.UpdateBook(bookToUpdate.Id, updatedBook);
                StandardMessages.UpdatedMessage("book");
            }
        }