예제 #1
0
        public Task <UserDetails> AsDetailsAsync()
        {
            var query = new GetCurrentUserDetailsQuery();

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
예제 #2
0
        public async Task <JsonResult> Get()
        {
            var query = new GetCurrentUserDetailsQuery();

            return(await _apiResponseHelper.RunQueryAsync(query));
        }
예제 #3
0
        public IContentRepositoryQueryContext <UserDetails> AsDetails()
        {
            var query = new GetCurrentUserDetailsQuery();

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }