Пример #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 IEnumerable <string> Available()
 {
     return(_queryMapper.MapValues <string>(_queryFactory.Available()));
 }
Пример #3
0
 public IEnumerable <string> Roles(Guid id)
 {
     return(_queryMapper.MapValues <string>(_queryFactory.Roles(id)));
 }