protected override void Dispose(bool disposing) { if (disposing && _plantingService != null) { _plantingService.Dispose(); _plantingService = null; } if (disposing && _harvestPeriodService != null) { _harvestPeriodService.Dispose(); _harvestPeriodService = null; } }
public PlantingController() { _plantingService = new PlantingService(); _harvestPeriodService = new PlantingPeriodService(); }