예제 #1
0
        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);
            }
        }
예제 #2
0
        public async Task <bool> DeleteVehicle(VehicleMake make)
        {
            int number = await database.DeleteVehicleAsync(make.dataBaseId);

            return(number > 0);
        }