//helper method private WCFBook[] ConvertFromBookList(List <Book> bList) { WCFBook[] bk = new WCFBook[bList.Count]; for (int i = 0; i < bList.Count; i++) { bk[i] = WCFBook.MakeBook(bList[i]); } return(bk); }
public WCFBook FindBookById(string id) { int bookId; bool result = Int32.TryParse(id, out bookId); if (result) { return(WCFBook.MakeBook(BusinessLogic.SearchBookByBookId(bookId))); } return(null); }