示例#1
0
        /// <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);
        }
示例#2
0
 public async Task <IEnumerable <VehicleModel> > GetVehicleModelsAsync(Filtering filters, Sorting sorting, Paging paging)
 {
     return(await _vehicleModelRepository.GetVehicleModels(filters, sorting, paging));
 }