예제 #1
0
 public async Task <bool> CreateMake(Make make)
 {
     _makeContext.Add(make);
     return(await Save());
 }
예제 #2
0
 public async Task <bool> CreateModel(Model model)
 {
     _modelContext.Add(model);
     return(await Save());
 }
예제 #3
0
 public async Task <bool> CreateFuelSupply(FuelSupply fuelSupply)
 {
     _fuelSupplyContext.Add(fuelSupply);
     return(await Save());
 }
예제 #4
0
 public bool CreateUser(User user)
 {
     _userContext.Add(user);
     return(Save());
 }
예제 #5
0
 public async Task <bool> CreateVehicle(Vehicle vehicle)
 {
     _vehicleContext.Add(vehicle);
     return(await Save());
 }