Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public DocumentContent FindContent(Guid id)
 {
     return(_queryMapper.MapObject <DocumentContent>(_queryFactory.FindContent(id)));
 }