Ejemplo n.º 1
0
        public IActionResult Index(int pageNumber = 1)
        {
            var data = _taskBusiness.GetAllDeleted();

            if (data.IsSuccess)
            {
                var model = PaginatedList <TaskDto> .CreateAsync(data.Data, pageNumber, 6);

                //var result = data.Data;
                return(View(model));
            }

            return(View(new List <TaskDto>()));
        }