protected override void Dispose(bool disposing) { if (disposing) { if (VoucherBatchService != null) { VoucherBatchService = null; } if (TripService != null) { TripService = null; } if (CruiseService != null) { CruiseService = null; } if (VoucherTemplateService != null) { VoucherTemplateService = null; } if (VoucherCodeService != null) { VoucherCodeService = null; } } base.Dispose(disposing); }
public VoucherTemplatesController(IVoucherTemplateService voucherTemplateService) { _voucherTemplateService = voucherTemplateService; }
public VoucherBatchesController(IVoucherBatchService voucherBatchService, ITripService tripService, ICruiseService cruiseService, IVoucherTemplateService voucherTemplateService, IVoucherCodeService voucherCodeService) { _voucherBatchService = voucherBatchService; _tripService = tripService; _cruiseService = cruiseService; _voucherTemplateService = voucherTemplateService; _voucherCodeService = voucherCodeService; }
protected override void Dispose(bool disposing) { if (disposing) { if (VoucherTemplateService != null) { VoucherTemplateService = null; } } base.Dispose(disposing); }