Beispiel #1
0
 /// <summary>
 /// Get Base Data
 /// </summary>
 /// <returns></returns>
 public VehicleBaseDataResponse GetBaseData()
 {
     return(new VehicleBaseDataResponse
     {
         Operations = operationRepository.GetAll(),
         FleetPools = fleetPoolRepository.GetAll(),
         Companies = companyRepository.GetAll(),
         Regions = regionRepository.GetAll(),
         FuelTypes = fuelTypeRepository.GetAll(),
         VehicleModels = vehicleModelRepository.GetAll(),
         VehicleStatuses = vehicleStatusRepository.GetAll(),
         Departments = departmentRepository.GetAll(),
         VehicleCategories = vehicleCategoryRepository.GetAll(),
         TransmissionTypes = transmissionTypeResposirory.GetAll(),
         VehicleMakes = vehicleMakeRepository.GetAll(),
         BusinessPartners = businessPartnerRepository.GetAll(),
         InsuranceType = insuranceTypeRepository.GetAll(),
         MaintenanceTypes = maintenanceTypeRepository.GetAll(),
         VehicleCheckList = vehicleCheckListRepository.GetAll(),
         Locations = operationsWorkPlaceRepository.GetSalesOperationsWorkPlace()
     });
 }
Beispiel #2
0
 /// <summary>
 /// Load All Vehicle CheckList
 /// </summary>
 public IEnumerable <VehicleCheckList> LoadAll()
 {
     return(vehicleCheckListRepository.GetAll());
 }