/// <summary> /// Get vehicle models /// </summary> /// <param name="brandId"></param> /// <returns></returns> public async Task <List <VehicleModelDto> > GetVehicleModels(long brandId) { var models = await _vehicleModelRepository.GetVehicleModels(brandId); var dtos = Mapper.Map <List <VehicleModelDto> >(models); return(dtos); }
public async Task <IEnumerable <VehicleModel> > GetVehicleModelsAsync(Filtering filters, Sorting sorting, Paging paging) { return(await _vehicleModelRepository.GetVehicleModels(filters, sorting, paging)); }