public static async Task UndoLesson(DataServiceRestClient client) { await client.DeleteMeasurementsByUuid(new[] { Measurement.Uuid }); //The server can be configured to allow or disallow deleting of parts with measurements await client.DeleteCharacteristics(new[] { Characteristic.Uuid }); await client.DeleteParts(new[] { Part.Uuid }); await client.DeleteAttributeDefinitions(EntityDto.Measurement, new[] { MeasurementAttributeDefinition.Key }); await client.DeleteAttributeDefinitions(EntityDto.Value, new[] { ValueAttributeDefinition.Key }); }
public static async Task UndoLesson(DataServiceRestClient client) { await client.DeleteParts(new[] { Part.Uuid }); await client.DeleteCharacteristics(new[] { Characteristic.Uuid, Child.Uuid }); }
public static async Task UndoLesson(DataServiceRestClient client, RawDataServiceRestClient rawClient) { await client.DeleteParts(new[] { Part.Uuid }); }