Example #1
0
        public Project AddUser(ObjectId projectId, string email)
        {
            var user = _userRepository.FindByEmail(email);

            if (user == null)
            {
                throw new ArgumentException("No such user found.");
            }

            return(_projectRepository.AddUser(projectId, user));
        }