public Task <RoleDetails> AsDetailsAsync() { var query = new GetRoleDetailsByIdQuery(_roleId); return(ExtendableContentRepository.ExecuteQueryAsync(query)); }
public IContentRepositoryQueryContext <RoleDetails> AsDetails() { var query = new GetRoleDetailsByIdQuery(_roleId); return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository)); }