public async Task <Response> GetAll(DataSource dataSource) { var list = _mapper.Map <IEnumerable <DriverDTO> >(await _driverDAL.GetAll()).AsQueryable(); return(Helper.ToResult(list, dataSource)); }
public List <Driver> GetAll() { return(_driverDAL.GetAll().ToList()); }