示例#1
0
        /// <summary>
        /// Archive active dataset
        /// </summary>
        /// <param name="datasetId"></param>
        public async Task ArchiveAsync(int datasetId)
        {
            var userId = await GetUserIdAsync();

            await InvokeGuard(() => _guard.AgainstInvalidDatasetArchivalAsync(datasetId, userId));

            await _repository.ArchiveDatasetAsync(datasetId);

            await _unitOfWork.SaveChangesAsync();
        }