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

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

            return(query.Execute(id));
        }