SHARE
TWEET

Untitled

a guest Apr 18th, 2014 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top