Пример #1
0
        public AssignUserViewModel(int id, int projectId)
        {
            ProjectId = projectId;

            if (id != 0)
            {
                var projectUser = ProjectManagementService.GetProjectUser(id);
                ProjectId = projectUser.ProjectId;
                RoleId    = projectUser.ProjectRoleId;
                UserId    = projectUser.UserId;
                Id        = projectUser.Id;
            }
        }