public async Task <IEnumerable <IVehicleModel> > GetVehicleModelsAsync(Filtering filters, Sorting sorting, Paging paging)
        {
            IEnumerable <IVehicleModel> query = await _vehicleModelRepository.GetAll(filters, sorting, paging);


            return(query.ToList());
        }
Esempio n. 2
0
 /// <summary>
 /// Get Tariff Rate Base Data
 /// </summary>
 /// <returns></returns>
 public TariffRateBaseResponse GetBaseData()
 {
     return(new TariffRateBaseResponse
     {
         Companies = companyRepository.GetAll(),
         Departments = departmentRepository.GetAll(),
         Operations = operationRepository.GetAll(),
         HireGroups = hireGroupRepository.GetAll(),
         VehicleModels = vehicleModelRepository.GetAll(),
         VehicleMakes = vehicleMakeRepository.GetAll(),
         VehicleCategories = vehicleCategoryRepository.GetAll(),
         TariffTypes = tariffTypeRepository.GetAll(),
     });
 }
Esempio n. 3
0
 /// <summary>
 /// Load Seasonal Discount Base data
 /// </summary>
 public SeasonalDiscountBaseResponse GetBaseData()
 {
     return(new SeasonalDiscountBaseResponse
     {
         Companies = companyRepository.GetAll(),
         Departments = departmentRepository.GetAll(),
         Operations = operationRepository.GetAll(),
         TariffTypes = tariffTypeRepository.GetAll(),
         OperationsWorkPlaces = operationsWorkPlaceRepository.GetAll(),
         VehicleCategories = vehicleCategoryRepository.GetAll(),
         VehicleModels = vehicleModelRepository.GetAll(),
         VehicleMakes = vehicleMakeRepository.GetAll(),
         HireGroups = hireGroupRepository.GetAll(),
         BpRatingTypes = ratingTypeRepository.GetAll(),
     });
 }
Esempio n. 4
0
        /// <summary>
        /// Load Hire Group Base data
        /// </summary>
        /// <returns></returns>
        public HireGroupBaseResponse LoadBaseData()
        {
            IEnumerable <Company>         companies         = companyRepository.GetAll();
            IEnumerable <HireGroup>       parentHireGroups  = hireGroupRepository.GetParentHireGroups();
            IEnumerable <VehicleCategory> vehicleCategories = vehicleCategoryRepository.GetAll();
            IEnumerable <VehicleMake>     vehicleMakes      = vehicleMakeRepository.GetAll();
            IEnumerable <VehicleModel>    vehicleModels     = vehicleModelRepository.GetAll();
            //exlude parent hire group
            IEnumerable <HireGroup> hireGroups = hireGroupRepository.GetHireGroupList();

            return(new HireGroupBaseResponse
            {
                Companies = companies,
                ParentHireGroups = parentHireGroups,
                VehicleCategories = vehicleCategories,
                VehicleMakes = vehicleMakes,
                VehicleModels = vehicleModels,
                HireGroups = hireGroups
            });
        }
Esempio n. 5
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()
     });
 }
Esempio n. 6
0
        public async Task <IEnumerable <IVehicleModel> > GetVehicleModels(VehicleFilters filters, VehicleSorting sorting, VehiclePaging paging)
        {
            IEnumerable <IVehicleModel> query = await _repository.GetAll(filters, sorting, paging);

            return(query.ToList());
        }
Esempio n. 7
0
 /// <summary>
 /// Load All Vehicle Models
 /// </summary>
 public IEnumerable <VehicleModel> LoadAll()
 {
     return(vehicleModelRepository.GetAll());
 }
Esempio n. 8
0
 public async Task <IEnumerable <IVehicleModelDomainModel> > GetAllVehicleModel()
 {
     return(await _vehicleModelRepository.GetAll());
 }
Esempio n. 9
0
        public void SetForm(View form)
        {
            _form = form;

            _form.VehicleModels = _modelRepo.GetAll();
        }