public async Task <bool> DeleteVehicleModel(string BrandName, int ModelDatabaseID, bool deleteEntireVehicleMake) { if (deleteEntireVehicleMake) { var result = await database.DeleteVehiclesAsync(BrandName); return(result > 0); } else { var result = await database.DeleteVehicleAsync(ModelDatabaseID); return(result > 0); } }
public async Task <bool> DeleteVehicle(VehicleMake make) { int number = await database.DeleteVehicleAsync(make.dataBaseId); return(number > 0); }