Пример #1
0
        public void Save(AdGroupWithRoles groupWithRoles)
        {
            if (groupWithRoles == null)
            {
                throw new ArgumentNullException("groupWithRoles");
            }

            new GenericData().Save(groupWithRoles);
        }
Пример #2
0
        private void AddGroup()
        {
            string newGroupName = "Group " + Guid.NewGuid();

            var group = new AdGroupWithRoles();

            group.AdGroupName = newGroupName;

            this.AdGroupWithRolesList.Add(group);

            this.SelectedAdGroupWithRoles = this.AdGroupWithRolesList.FirstOrDefault(x => x.AdGroupName == newGroupName);
        }
Пример #3
0
        public static void Save(AdGroupWithRoles groupWithRoles)
        {
            if (groupWithRoles == null)
            {
                throw new ArgumentNullException("groupWithRoles");
            }

            try
            {
                DataAccessFactory.GetDataInterface <ISecurityData>().Save(groupWithRoles);
            }
            catch (ConcurrencyException ex)
            {
                LogicBase.SetConcurrencyUserSafeMessage(ex, groupWithRoles.AdGroupName);
                throw;
            }
        }
Пример #4
0
 public AdGroupWithRoles SaveAdGroupWithRoles(AdGroupWithRoles adGroupWithRoles)
 {
     Invoke(() => SecurityLogic.Save(adGroupWithRoles));
     return(adGroupWithRoles);
 }