public async Task <ActionResult <PagedResponse <UserTaskResponseDto> > > GetUserTasks([FromQuery] PaginationFilter paginationFilter) { var userTasks = await userTaskService.GetAllAsync(paginationFilter); var pagedResponse = new PagedResponse <UserTaskResponseDto>() { CurrentPage = userTasks.CurrentPage, PageSize = userTasks.PageSize, TotalItems = userTasks.TotalItems, TotalPages = userTasks.TotalPages, Items = mapper.Map <IEnumerable <UserTaskResponseDto> >(userTasks.Items) }; return(Ok(pagedResponse)); }