public virtual async Task <PagedResultDto <PersistedGrantDto> > GetListAsync(GetPersistedGrantInput input)
        {
            var persistenGrantCount = await PersistentGrantRepository
                                      .GetCountAsync(
                input.SubjectId, input.Filter);

            var persistenGrants = await PersistentGrantRepository
                                  .GetListAsync(
                input.SubjectId, input.Filter, input.Sorting,
                input.SkipCount, input.MaxResultCount);

            return(new PagedResultDto <PersistedGrantDto>(persistenGrantCount,
                                                          ObjectMapper.Map <List <PersistedGrant>, List <PersistedGrantDto> >(persistenGrants)));
        }
예제 #2
0
 public virtual async Task <PagedResultDto <PersistedGrantDto> > GetListAsync(GetPersistedGrantInput input)
 {
     return(await PersistedGrantAppService.GetListAsync(input));
 }