Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public class DashboardViewModel
  2. {
  3. public DashboardViewModel()
  4. {
  5. BookListViewModel = new BookListViewModel(Books);
  6. }
  7.  
  8. public BookListViewModel BookListViewModel { get; private set; }
  9.  
  10. private static List<BookViewModel> Books = new List<BookViewModel>()
  11.  
  12. {
  13. new BookViewModel(
  14. new Book{
  15. Title = "Title",
  16. Author = "Author",
  17. Price = 1.2,
  18. Publisher = "Publisher"
  19. }),
  20. new BookViewModel(
  21. new Book{
  22. Title = "Title2",
  23. Author = "Author2",
  24. Price = 1.2,
  25. Publisher = "Publisher2"
  26. })
  27. };
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement