Ejemplo n.º 1
0
        public async Task <ActionResult> GetSingle(int id)
        {
            HomePageViewModel page = new HomePageViewModel
            {
                BlogCategoy       = await _blogCategoryService.GetAll(),
                GetSingleBlogPost = await _blogPostOrder.GetSinglePost(id)
            };

            return(View(page));
        }
Ejemplo n.º 2
0
 // GET api/blog/5
 public async Task<ForumPostViewModel> GetById(int id) { return await _blogPostOrder.GetSinglePost(id); }