Beispiel #1
0
 public IEnumerable <Vehicle> Get()
 {
     return(vehiclesRepository.GetAll());
 }
Beispiel #2
0
        public IEnumerable <VehicleViewModel> GetAll()
        {
            var vehicles = repository.GetAll().ToList();

            return(mapper.Map <IEnumerable <VehicleViewModel> >(vehicles));
        }
Beispiel #3
0
            public async Task<List<Vehicle>> Handle(VehiclesList request, CancellationToken cancellationToken)
            {
                var vehicles = await _vehiclesRepository.GetAll();

                return vehicles;
            }
 public Task <IEnumerable <Vehicle> > GetVehicles()
 {
     return(vehicleRepository.GetAll());
 }