public void Submit() { if (_scope != null) { _scope.Submit(); } else { _application.Submit(); } }
protected override void OnSaving() { if (IsNew) { IAzItem = Application.CreateScope(Name, Description); } else { IAzScope.Name = Name; IAzScope.Description = Description; } Roles.ForEach(r => r.Save()); Groups.ForEach(g => g.Save()); RoleAssignments.ForEach(r => r.Save()); IAzScope.Submit(); }