Exemple #1
0
        /// <summary>
        /// Get Paged List
        /// </summary>
        /// <param name="input"></param>
        /// <param name="includeDetails"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        public async Task <PagedResultDto <ContainerDto> > GetPagedListAsync(FileStoringContainerPagedRequestDto input, bool includeDetails = true, CancellationToken cancellationToken = default)
        {
            var count = await FileStoringContainerRepository.GetCountAsync(input.Name, input.Provider);

            var fileStoringContainers = await FileStoringContainerRepository.GetListAsync(
                input.SkipCount,
                input.MaxResultCount,
                input.Sorting,
                includeDetails,
                input.Name,
                input.Provider,
                cancellationToken);

            return(new PagedResultDto <ContainerDto>(
                       count,
                       ObjectMapper.Map <List <FileStoringContainer>, List <ContainerDto> >(fileStoringContainers)
                       ));
        }
 public async Task <PagedResultDto <ContainerDto> > GetPagedListAsync(FileStoringContainerPagedRequestDto input)
 {
     return(await _containerAppService.GetPagedListAsync(input, true));
 }
 public async Task <PagedResultDto <ContainerDto> > GetPagedListAsync(
     FileStoringContainerPagedRequestDto input,
     bool includeDetails = true)
 {
     return(await _containerAppService.GetPagedListAsync(input, includeDetails));
 }