public static LibraryEntity.BookLibrary ToBookEntity(BusinessLayer.BookLibrary bussinessBook) { var databaseBook = new LibraryEntity.BookLibrary() { UniqueID = bussinessBook.UniqueID, Book = bussinessBook.Book, Author = bussinessBook.Author, Pages = bussinessBook.Pages, RealeseDate = bussinessBook.RealeseDate }; return(databaseBook); }
public static BusinessLayer.BookLibrary ToBusinessBook(LibraryEntity.BookLibrary databaseBook) { var bussinessBook = new BusinessLayer.BookLibrary() { UniqueID = databaseBook.UniqueID, Book = databaseBook.Book, Author = databaseBook.Author, Pages = databaseBook.Pages, RealeseDate = databaseBook.RealeseDate }; return(bussinessBook); }