Beispiel #1
0
 public List <CarType> GetCarTypes()
 {
     if (this.carType.Count == 0)
     {
         carType = APIHelper.GetAPIResponse <List <CarType> > ("CarType");
     }
     return(carType);
 }
Beispiel #2
0
        public List <Driver> GetDrivers()
        {
            var drivers = APIHelper.GetAPIResponse <List <Driver> > ("Driver");

            return(drivers);
        }
Beispiel #3
0
        public List <Driver> GetDriversByCarType(CarType carType)
        {
            var drivers = APIHelper.GetAPIResponse <List <Driver> > ("Driver/GetDriversByCarType/?" + "carType=" + carType.Type);

            return(drivers);
        }