Beispiel #1
0
 //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);
 }
Beispiel #2
0
        public WCFBook FindBookById(string id)
        {
            int  bookId;
            bool result = Int32.TryParse(id, out bookId);

            if (result)
            {
                return(WCFBook.MakeBook(BusinessLogic.SearchBookByBookId(bookId)));
            }
            return(null);
        }