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() }); }
public void Update(EntityFramework.Models.Book book) { _bookRepository.Update(book); }
public void CreateBook(EntityFramework.Models.Book book) { _bookRepository.CreateBook(book); }