public ActionResult Index(int pageNumber = 1) { var viewModel = new IndexViewModel(); viewModel.Posts = postAppService.GetAll(pageNumber, 50); return(View(viewModel)); }
public override void Execute(int args) { _postAppService.GetAll(); }
public IActionResult GetAll(PostFilter filter) { var post = _postAppService.GetAll(filter); return(Ok(post)); }