/// <summary> /// Inserts an ACL /// </summary> /// <param name="acl">ACL</param> public void InsertAcl(ACL acl) { if (acl == null) { throw new ArgumentNullException("acl"); } _context.ACLs.AddObject(acl); _context.SaveChanges(); }
/// <summary> /// Updates the ACL /// </summary> /// <param name="acl">ACL</param> public void UpdateAcl(ACL acl) { if (acl == null) { throw new ArgumentNullException("acl"); } if (!_context.IsAttached(acl)) { _context.ACLs.Attach(acl); } _context.SaveChanges(); }