private static void timeAndExpensesUpdater(ClarifyDataRow record, HistoryItem historyItem)
 {
     var timeDescribed = TimeSpan.FromSeconds(record.AsInt("total_time"));
     var expense = Convert.ToDecimal(record["total_exp"]).ToString("C");
     var notes = record.AsString("notes");
     var detail = HistoryBuilderTokens.LOG_EXPENSES_DETAIL.ToFormat(Environment.NewLine, timeDescribed, expense, notes);
     historyItem.Detail = detail;
 }
        private static void setInternalLog(ClarifyDataRow row, HistoryItem dto, string noteField)
        {
            var isNewInternalNote = row.AsInt("x_is_internal") == 1;
            var notes = row.AsString(noteField);
            var @internal = row.AsString("internal");

            dto.Detail = isNewInternalNote ? "" : notes;
            dto.Internal = isNewInternalNote ? notes : @internal;
        }