public void CopyValuesToEntity(BookLibrary.Entities.Book dbBook) { dbBook.Description = this.Description; dbBook.Author = this.Author; dbBook.Genre = this.Genre; dbBook.Quantity = this.Quantity; dbBook.Title = this.Title; dbBook.Description = this.Description; }
public BookModel(BookLibrary.Entities.Book book) { this.ID = book.ID; this.Author = book.Author; this.Description = book.Description; this.Genre = book.Genre; this.Quantity = book.Quantity; this.Title = book.Title; }