public ActionResult Post(int id) { var viewModel = new PostViewModel(); viewModel.Post = postAppService.GetById(id, 1, 150); return(View(viewModel)); }
public IActionResult GetById(int id) { var post = _postAppService.GetById(id); return(Ok(post)); }