|
|
|
@ -49,12 +49,11 @@ namespace Volo.Docs.Documents |
|
|
|
x.Version == version, GetCancellationToken(cancellationToken)); |
|
|
|
} |
|
|
|
|
|
|
|
public async Task DeleteAsync(Guid projectId, string name, string languageCode, string version, |
|
|
|
CancellationToken cancellationToken = default) |
|
|
|
public async Task DeleteAsync(Guid projectId, string name, string languageCode, string version, bool autoSave = false, CancellationToken cancellationToken = default) |
|
|
|
{ |
|
|
|
await DeleteAsync(x => |
|
|
|
x.ProjectId == projectId && x.Name == name && x.LanguageCode == languageCode && |
|
|
|
x.Version == version, cancellationToken: cancellationToken); |
|
|
|
x.Version == version, autoSave, cancellationToken: cancellationToken); |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<List<Document>> GetListAsync(Guid? projectId, string version, string name, CancellationToken cancellationToken = default) |
|
|
|
|