示例#1
0
        //////string BASE_URL = "http://localhost:50959/BookService.svc";

        public Book Find(int?id)
        {
            var  find = client.GetBookById(Convert.ToString(id));
            Book book = new Book();

            book.BookId = find.BookId;
            book.ISBN   = find.ISBN;
            book.Title  = find.Title;

            return(book);
        }
        public Book GetBookById(int id)
        {
            var book  = client.GetBookById(Convert.ToString(id));
            var book1 = new Book()
            {
                BookId = book.BookId,
                ISBN   = book.ISBN,
                Title  = book.Title
            };

            return(book1);
        }