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

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