示例#1
0
 /// <summary>
 /// Get All
 /// </summary>
 public VehicleMakerResponse Get([FromUri] MainDomain.VehicleModelMakerSearchRequest request)
 {
     if (request == null || !ModelState.IsValid)
     {
         throw new HttpException((int)HttpStatusCode.BadRequest, "Invalid Request");
     }
     return(_vehicleMakerService.GetAllVehicleMakers().CreateFrom());
 }
 /// <summary>
 /// Get All
 /// </summary>
 public VehicleModelMakerResponse Get([FromUri] MainDomain.VehicleModelMakerSearchRequest request)
 {
     return(_vehicleModelMakerService.GetAllVehicleModelMakers(request).CreateFrom());
 }
 public VehicleModelMakerResponse GetAllVehicleModelMakers(VehicleModelMakerSearchRequest vehicleModelMakerSearchRequest)
 {
     return vehicleModelMakerRepository.GetAllVehicles(vehicleModelMakerSearchRequest);
 }