Exemple #1
0
        public ActionResult Index(int pageNumber = 1)
        {
            var viewModel = new IndexViewModel();

            viewModel.Posts = postAppService.GetAll(pageNumber, 50);

            return(View(viewModel));
        }
Exemple #2
0
 public override void Execute(int args)
 {
     _postAppService.GetAll();
 }
Exemple #3
0
        public IActionResult GetAll(PostFilter filter)
        {
            var post = _postAppService.GetAll(filter);

            return(Ok(post));
        }