Example #1
0
 public TripsController(TripService tripService, DriverService driverService, VehicleService vehicleService, VehicleRateService vehicleRateService, PreDefineTripService preDefineTripService, BataRateService bataRateService, PackageListService packageListService, TripBataService tripBataService, UserLogService logUserService, CorporateService corporateService, CustomBataService custombataService, CustomerService customerService)
 {
     _tripService          = tripService;
     _driverService        = driverService;
     _vehicleService       = vehicleService;
     _vehicleRateService   = vehicleRateService;
     _preDefineTripService = preDefineTripService;
     _bataRateService      = bataRateService;
     _packageListService   = packageListService;
     _tripBataService      = tripBataService;
     _logUserService       = logUserService;
     _corporateService     = corporateService;
     _custombataService    = custombataService;
     _customerService      = customerService;
 }
        public ManageTripsController(VehicleRateService vehicleRateService, PreDefineTripService preDefineTripService, BataRateService bataRateService)
        {
            if (vehicleRateService == null)
            {
                throw new NullReferenceException("vehicleRateService");
            }

            if (preDefineTripService == null)
            {
                throw new NullReferenceException("preDefineTripService");
            }

            _vehicleRateService   = vehicleRateService;
            _preDefineTripService = preDefineTripService;
            _bataRateService      = bataRateService;
        }