public List <CarType> GetCarTypes() { if (this.carType.Count == 0) { carType = APIHelper.GetAPIResponse <List <CarType> > ("CarType"); } return(carType); }
public List <Driver> GetDrivers() { var drivers = APIHelper.GetAPIResponse <List <Driver> > ("Driver"); return(drivers); }
public List <Driver> GetDriversByCarType(CarType carType) { var drivers = APIHelper.GetAPIResponse <List <Driver> > ("Driver/GetDriversByCarType/?" + "carType=" + carType.Type); return(drivers); }