コード例 #1
0
        public virtual async Task <PagedResultDto <UserFriend> > GetListAsync(MyFriendGetByPagedDto input)
        {
            var myFrientCount = await FriendStore.GetCountAsync(CurrentTenant.Id, CurrentUser.GetId());

            var myFriends = await FriendStore
                            .GetPagedListAsync(CurrentTenant.Id, CurrentUser.GetId(),
                                               input.Filter, input.Sorting, input.Reverse,
                                               input.SkipCount, input.MaxResultCount);

            return(new PagedResultDto <UserFriend>(myFrientCount, myFriends));
        }
 public virtual async Task <PagedResultDto <UserFriend> > GetListAsync(MyFriendGetByPagedDto input)
 {
     return(await MyFriendAppService.GetListAsync(input));
 }