Example #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));
        }
Example #2
0
 // GET api/blog/5
 public async Task<ForumPostViewModel> GetById(int id) { return await _blogPostOrder.GetSinglePost(id); }