コード例 #1
0
        public IActionResult Index(int pageNumber = 1)
        {
            var userId = Convert.ToInt32(User.Claims.Where(x => x.Type == ClaimTypes.NameIdentifier).FirstOrDefault().Value);
            var data   = _taskBusiness.UserReportUrgencyGetAllCompleted(userId);

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

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