IEnumerable <Idea> IIdeasService.GetAllIdeasOfAUser(string userId) { var ideas = _ideasRepository.GetAllIdeasOfAUser(userId); if (ideas == null) { throw new NotFoundException("Cannot find user"); } return(ideas); }