public bool IsShared(int id, int userId) { if (!UserOwnsOrShares(id, userId)) { throw new ValidationException("Unauthorized"); } return(_listsRepository.IsShared(id)); }