public IActionResult Index(int pageNumber = 1) { var data = _taskBusiness.UserReportUrgencyGetAll(); if (data.IsSuccess) { var model = PaginatedList <TaskDto> .CreateAsync(data.Data, pageNumber, 6); //var result = data.Data; return(View(model)); } return(View()); }
public IActionResult Index(int pageNumber = 1) { var userId = Convert.ToInt32(User.Claims.Where(x => x.Type == ClaimTypes.NameIdentifier).FirstOrDefault().Value); var data = _taskBusiness.UserReportUrgencyGetAll(userId); if (data.IsSuccess) { var model = PaginatedList <TaskDto> .CreateAsync(data.Data, pageNumber, 3); //var result = data.Data; return(View(model)); } return(View()); }