Пример #1
0
        public Member AddUserToProject(Project project, User user, Role role)
        {
            var member = new Member()
            {
                Role    = role,
                User    = user,
                Project = project
            };

            _projectDAO.InsertMember(project.Id, member);

            return(_projectDAO.GetMemberByUserId(project.Id, user.Id));
        }