Esempio n. 1
0
        public async Task <ActionResult> RightSiteBar()
        {
            HomePageViewModel page = new HomePageViewModel
            {
                GetLastBlogPost = await _blogPostOrder.GetLastBlogPost()
            };

            return(PartialView(page));
        }
Esempio n. 2
0
 // GET api/blog/GetLastPost
 public async Task<List<ForumPostViewModel>> GetLastPost() { return await _blogPostOrder.GetLastBlogPost(); }