Exemple #1
0
 public void CreateBook(EntityFramework.Models.Book book)
 {
     var createdBook = bookClient.Insert(new BookVM()
     {
         BookID           = book.BookID,
         Title            = book.Title,
         Price            = book.Price,
         AuthorName       = book.AuthorName,
         AuthorAddress    = book.AuthorAddress,
         AuthorBiografi   = book.AuthorBiografi,
         AuthorBirthDate  = book.AuthorBirthDate.ToString(),
         PublisherName    = book.PublisherName,
         PublisherAddress = book.PublisherAddress,
         PublishDate      = book.PublishDate.ToString()
     });
 }
Exemple #2
0
 public void Update(EntityFramework.Models.Book book)
 {
     _bookRepository.Update(book);
 }
Exemple #3
0
 public void CreateBook(EntityFramework.Models.Book book)
 {
     _bookRepository.CreateBook(book);
 }