private int GetRowIndexByBehaviour(RangeCalculationBehaviour behaviour) { if (behaviour == RangeCalculationBehaviour.FirstPart) { return 0; } return _excelDataProvider.ExcelMaxRows - 1; }