public override void Execute(T parameter) { if (!CanExecute(parameter)) { return; } IAction action = new RemoveModelAction <T>(collection, parameter); if (manager != null) { manager.PerformAction(action); } else { action.Perform(); } }