Handle.GET("/people/persons/{?}", (string id) =>
MasterPage master = GetMasterPageFromSession();
Action runPartialInScope = () =>
master.CurrentPage = Self.GET("/people/partials/persons/" + id);
if (master.CurrentPage.Transaction != null)
// Attach to a long running transaction of the existing CurrentPage
master.CurrentPage.Transaction.Scope(runPartialInScope);
// If there was no existing CurrentPage, create a new transaction
Db.Scope(runPartialInScope);