Пример #1
0
 /// <summary>
 /// Get All
 /// </summary>
 public PowerSteeringOilResponse Get([FromUri] MainDomain.PowerSteeringOilSearchRequest request)
 {
     if (request == null || !ModelState.IsValid)
     {
         throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request");
     }
     return(_powerSteeringOilService.GetAllPowerSterringOils().CreateFrom());
 }
Пример #2
0
 /// <summary>
 /// Get All
 /// </summary>
 public Models.RecordBaseData Get()
 {
     return(new RecordBaseData
     {
         OilMakerCompanies = _oilMakerService.GetAllOilMakers().OilMakers.Select(x => x.CreateFrom()),
         Oils = _oilService.GetAll().Oils.Select(x => x.CreateFrom()),
         VehicleMakers = _vehicleMakerService.GetAllVehicleMakers().VehicleMakers.Select(x => x.CreateFrom()),
         VehicleModelMaker = _vehicleModelMakerService.GetAllVehicleModelMakers(new MainDomain.VehicleModelMakerSearchRequest()).VehicleModelMakers.Select(x => x.CreateFrom()),
         AirFilters = _airFilterService.GetAllAirFilters().AirFilters.Select(x => x.CreateFrom()),
         OilFilters = _oilFilterService.GetAllOilFilters().OilFilters.Select(x => x.CreateFrom()),
         BrakeOils = _brakeOilService.GetAllBrakeOils().BrakeOils.Select(x => x.CreateFrom()),
         PowerSterringOils = _powerSteeringOilService.GetAllPowerSterringOils().PowerSterringOils.Select(x => x.CreateFrom())
     });
 }