Beispiel #1
0
 //Parameterized constructor.
 public PostUserViewModel(BlogEngineDAL dataaccess, long userId)
 {
     Posts = dataaccess.GetPostsByUserId(userId);
     User  = dataaccess.GetUserDetailsById(userId);
 }