public Query.Role Get(Guid id) { var result = _queryMapper.MapObject <Query.Role>(_queryFactory.Get(id)); result.Permissions = new List <string>(_queryMapper.MapValues <string>(_queryFactory.Permissions(id))); return(result); }
public DataStore Get(Guid id) { var result = _queryMapper.MapObject <DataStore>(_queryFactory.Get(id)); if (result == null) { throw new SentinelException($"Could not find a data store with id '{id}'."); } return(result); }
public DocumentContent FindContent(Guid id) { return(_queryMapper.MapObject <DocumentContent>(_queryFactory.FindContent(id))); }