Example #1
0
        /// <summary>
        /// Returns the users in the CAM system.
        /// </summary>
        /// <param name="queryOperator">The query operator.</param>
        /// <returns>The users.</returns>
        public async Task <PagedQueryResults <UserDTO> > GetUsersAsync(QueryableOperator <UserDTO> queryOperator)
        {
            var users = await UserQueries.CreateGetUsersQuery(this.Context, queryOperator).ToPagedQueryResultsAsync(queryOperator.Start, queryOperator.Limit);

            logger.Trace("Retrieved users from CAM with query operator [{0}].", queryOperator);
            return(users);
        }