public static void UpdateMovie() { Movie movieToUpdate = SelectMovieById.SelectMovie("update"); if (movieToUpdate != null) { Movie updatedMovie = ItemDataCapture.Movie(); MovieRepository.UpdateMovie(movieToUpdate.Id, updatedMovie); StandardMessages.UpdatedMessage("movie"); } }
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"); } }
public static void UpdateBook() { Book bookToUpdate = SelectBookById.SelectBook("update"); if (bookToUpdate != null) { Book updatedBook = ItemDataCapture.Book(); BookRepository.UpdateBook(bookToUpdate.Id, updatedBook); StandardMessages.UpdatedMessage("book"); } }