/// <summary> /// Creates or updates a daisy. /// </summary> /// <param name="daisy">The daisy.</param> /// <param name="checkVersion">The version if a consistency check is required.</param> /// <returns>A task representing the result of the asynchronous operation.</returns> public async Task UpsertDaisy(Daisy daisy, int?checkVersion = null) { await StoreClient.UpsertDocumentAsync( daisy, _daisyMapping, new OperationOptions { CheckVersion = checkVersion }); }
public async Task Upsert(Daisy doc) { await StoreClient.UpsertDocumentAsync(doc, _mapping, new OperationOptions()); }