public void Handle(AddProjectMemberCommand message)
        {
            if (!message.IsValid())
            {
                NotifyValidationErrors(message);
                return;
            }

            var member = new ProjectMember(Guid.NewGuid());

            member.User    = userRepository.GetById(message.UserId);
            member.Project = projectRepository.GetById(message.ProjectId);

            projectMemberRepository.Add(member);
            Commit();
        }
Exemplo n.º 2
0
 public void Add(RTC_ProjectMember member)
 {
     projectMemberRepository.Add(member);
 }