public virtual async Task HandleDeleteEntityAsync(string modelId, string entityContainer, string keyStr) { await Manager.DeleteEntityAsync(modelId, entityContainer, keyStr); await WriteOkJsonResponseAsync(HttpContext, async jsonWriter => { await WriteDeleteEntityResponseAsync(jsonWriter); }); }
public virtual async Task HandleDeleteEntityAsync(string modelId, string entityContainer, string keyStr, CancellationToken ct = default) { await Manager.DeleteEntityAsync(modelId, entityContainer, keyStr, ct); await WriteOkJsonResponseAsync(HttpContext, async (jsonWriter, cancellationToken) => { await WriteDeleteEntityResponseAsync(jsonWriter, cancellationToken); }, ct); }