예제 #1
0
        public BookBO NewBook(string _title, int _seriesID_FK)
        {
            int    _bookID = dataContext.AddBook(_title, _seriesID_FK);
            BookBO rval    = new BookBO();

            rval.BookID      = _bookID;
            rval.Title       = _title;
            rval.SeriesID_FK = _seriesID_FK;
            return(rval);
        }
예제 #2
0
 public void DeleteBook(BookBO book)
 {
     DeleteBook(book.BookID);
 }
예제 #3
0
 public void UpdateBook(BookBO book)
 {
     dataContext.UpdateBook(book.BookID, book.Title, book.SeriesID_FK);
 }