Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BookViewModel : ViewModelBase
- {
- private readonly Book _book;
- public BookViewModel(Book book)
- {
- this._book = book;
- }
- public string Title
- {
- get { return _book.Title; }
- }
- public string Author
- {
- get { return _book.Author; }
- }
- public int Count
- {
- get { return _book.Count;}
- }
- public double Price
- {
- get { return _book.Price; }
- }
- public string Publisher
- {
- get { return _book.Publisher; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement