示例#1
0
        public Header GetHeaderById(ClaimsPrincipal contextUser, string headerCode)
        {
            var blockedUserIds = _userService.GetUserWithRoles(contextUser).BlockedUserIds;

            return(_headerRepository.Get(x => x.IdCode == headerCode && !blockedUserIds.Contains(x.UserId)));
        }