private void ResetTrackbacks(Id collId, AppService appSvc) { if (collId == null) return; var bcoll = new BlogAppCollection(appSvc.GetCollection(collId)); //get old value bool? on = bcoll.GetBooleanProperty(Atom.SvcNs + "tracbacksWereOn"); bcoll.TrackbacksOn = on.HasValue ? on.Value : true; bcoll.SetBooleanProperty(Atom.SvcNs + "tracbacksWereOn", null); }
private void TurnOffTrackbacks(Id collId, AppService appSvc) { if (collId == null) return; var bcoll = new BlogAppCollection(appSvc.GetCollection(collId)); //store old value bcoll.SetBooleanProperty(Atom.SvcNs + "tracbacksWereOn", bcoll.TrackbacksOn); bcoll.TrackbacksOn = false; }