Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DashboardViewModel
- {
- public DashboardViewModel()
- {
- BookListViewModel = new BookListViewModel(Books);
- }
- public BookListViewModel BookListViewModel { get; private set; }
- private static List<BookViewModel> Books = new List<BookViewModel>()
- {
- new BookViewModel(
- new Book{
- Title = "Title",
- Author = "Author",
- Price = 1.2,
- Publisher = "Publisher"
- }),
- new BookViewModel(
- new Book{
- Title = "Title2",
- Author = "Author2",
- Price = 1.2,
- Publisher = "Publisher2"
- })
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement