public void ChangeActiveStatus(Period period, bool activeStatus) { if (activeStatus) { PeriodActivatorService.Activate(periodRep, period); } else { period.DeActive(); } }