示例#1
0
        public ActionResult Post(int id)
        {
            var viewModel = new PostViewModel();

            viewModel.Post = postAppService.GetById(id, 1, 150);

            return(View(viewModel));
        }
示例#2
0
        public IActionResult GetById(int id)
        {
            var post = _postAppService.GetById(id);

            return(Ok(post));
        }