Ejemplo n.º 1
0
        public async Task <List <VehicleModel> > FindAsync(string SearchString, string SortBy, int?queryPage)
        {
            var modelsList = await repository.FindAsync(SearchString, SortBy, queryPage);

            List <VehicleModel> listMapped = mapper.Map <List <VehicleModelEntity>, List <VehicleModel> >(modelsList);

            //var makesListMapped = mapper.Map<List<VehicleMake>>(makesList);

            return(listMapped);
        }