Esempio n. 1
0
        public async Task <ActionResult <List <Driver> > > GetAllDrivers()
        {
            var result = await _dataReader.GetAllDrivers();

            return(result.Select(x => Driver.MapFromDb(x)).ToList());
        }
        public async Task <List <Driver> > BuildAllDriversBio()
        {
            var result = await _driverReader.GetAllDrivers();

            return(result.Select(x => Driver.MapFromDb(x)).ToList());
        }