Пример #1
0
        public void OnUserRoleUnassign(Select2 <ProcessRole> select, string roleId)
        {
            RedoableCommands.Clear();
            var unassignedRole    = _userModelManager.GetProcessRoles().Where(r => r.Id == roleId).FirstOrDefault();
            var unassignedCommand = new UnassignRoleCommand(_userModelManager, unassignedRole, select);

            UndoableCommands.Push(unassignedCommand);
        }
Пример #2
0
        public void UserRoleUnassigned(Select2 <ProcessRole> select, string roleId)
        {
            Console.WriteLine("Unassigned user role");
            RedoableCommands.Clear();
            var unassignedRole    = _contractManager.GetProcessRoles().Where(r => r.Id == roleId).FirstOrDefault();
            var unassignedCommand = new UnassignRoleCommand(_contractManager, unassignedRole, select);

            UndoableCommands.Push(unassignedCommand);
        }