Esempio n. 1
0
        private void GetUsersAndBlogs(HomePageViewModel homePageViewModel)
        {
            IEnumerable <User> users = _userService.GetUsersWithTheirBlogs();

            homePageViewModel.Add(users);
        }
Esempio n. 2
0
        private void GetPosts(HomePageViewModel homePageViewModel)
        {
            IEnumerable <Post> posts = _postService.GetBlogPosts();

            homePageViewModel.Add(posts);
        }