Example #1
0
        public async Task <ActionResult> Index()
        {
            HomePageViewModel newPage = new HomePageViewModel
            {
                GetBlogPost = await _blogPostOrder.GetAll(),
            };

            return(PartialView(newPage));
        }
Example #2
0
 // GET api/blog/GetAll
 public async Task<List<ForumPostViewModel>> GetAll()
 {
     return await _blogPostOrder.GetAll();
 }