public void Save(AdGroupWithRoles groupWithRoles) { if (groupWithRoles == null) { throw new ArgumentNullException("groupWithRoles"); } new GenericData().Save(groupWithRoles); }
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); }
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; } }
public AdGroupWithRoles SaveAdGroupWithRoles(AdGroupWithRoles adGroupWithRoles) { Invoke(() => SecurityLogic.Save(adGroupWithRoles)); return(adGroupWithRoles); }