示例#1
0
        public Role GetRole(Guid roleId)
        {
            RoleWithPermissionsQuery query = new RoleWithPermissionsQuery(dbContext.Roles);
            RoleMapper roleMapper          = new RoleMapper();

            return(roleMapper.Map(query.Execute(roleId)));
        }
示例#2
0
        public Role GetRoleWithPermissions(Guid id)
        {
            RoleWithPermissionsQuery query = new RoleWithPermissionsQuery(dbContext.Roles);

            return(query.Execute(id));
        }