private void SetStatus(BatchRun batchRun, BatchRunStatus status) { _session.Transact(session => { batchRun.Status = status; session.Update(batchRun); }); }