예제 #1
0
        public List <UserDto> AllUsersMatching(UserFilterDto filter)
        {
            if (filter == null)
            {
                throw new ArgumentNullException();
            }

            return(ExecuteSelectQuery(uow => uow
                                      .UserRepository
                                      .GetAllUsersMatching(filter.MapToDbEntity())));
        }
예제 #2
0
        public List <UserDto> AllSubscriptionsOfMatching(UserDto subscriber, UserFilterDto filter)
        {
            ValidateUser(subscriber, filter);

            return(ExecuteSelectQuery(uow => uow
                                      .UserRepository
                                      .GetAllSubscriptionsOfMatching(subscriber.MapToDbEntity(), filter.MapToDbEntity())));
        }
예제 #3
0
        public List <UserDto> AllSubscribersOfMatching(UserDto publisher, UserFilterDto filter)
        {
            ValidateUser(publisher, filter);

            return(ExecuteSelectQuery(unitOfWork => unitOfWork
                                      .UserRepository
                                      .GetAllSubscribersOfMatching(publisher.MapToDbEntity(), filter.MapToDbEntity())));
        }