I would like to move a content node and change some properties. But it should be done in a transaction. The operations are done with PetaPoco Framework and it support transactions. Looking for the proper way to achieve transactional content updates.
I just wrote the following imaginary code to demonstrate what I'd like to achieve. I need something like this:
using (var transaction = DatabaseContext.Database.GetTransaction())
{
var content = Services.ContentService.GetById(model.Id);
Services.ContentService.Move(content, parentId);
content.SetValue("prop", "value");
Services.ContentService.SaveAndPublishWithStatus(content);
transaction.Complete();
}