public async Task <ActionResult <VehicleTypeDto> > GetVehicleType(int id)
        {
            var vehicleTypeFromRepo = await _vehicleTypeRepo.GetVehicleTypeAsync(id);

            if (vehicleTypeFromRepo == null)
            {
                return(NotFound());
            }

            var vehicleTypeDto = _mapper.Map <VehicleTypeDto>(vehicleTypeFromRepo);
            var response       = new Response <VehicleTypeDto>(vehicleTypeDto);

            return(Ok(response));
        }
 public async Task <VehicleType> GetVehicleTypeIDAsync(int id)
 {
     return(await vehicleTypeRepository.GetVehicleTypeAsync(id));
 }