Ejemplo n.º 1
0
        public IActionResult ListReview([FromQuery] int?page)
        {
            Pager @pager;
            var   todos = _taskDispatcher.ListToReview();

            @pager            = new Pager(todos.Count(), page ?? 1, 20);
            ViewData["pager"] = @pager;
            var shownTodos = todos.Skip(@pager.PageSkip).Take(@pager.PageSize).ToList();

            ViewData["ToReview"]  = shownTodos;
            ViewData["Reviewing"] = _taskDispatcher.ListReviewing();
            return(View("ListReview"));
        }