public VehicleService()
 {
     Service  = new UtilityService();
     Vehicles = JsonConvert.DeserializeObject <List <Vehicle> >(File.ReadAllText(VehiclePath)) ?? new List <Vehicle>();
 }
Esempio n. 2
0
 public DriverService()
 {
     Service = new UtilityService();
     Drivers = JsonConvert.DeserializeObject <List <Driver> >(File.ReadAllText(DriverPath)) ?? new List <Driver>();
 }
 public BookingService()
 {
     Service  = new UtilityService();
     Bookings = JsonConvert.DeserializeObject <List <Booking> >(File.ReadAllText(BookingPath)) ?? new List <Booking>();
 }