Beispiel #1
0
        public async Task PutAsync(int datasetId, DatasetPut datasetPut)
        {
            var userId = await GetUserIdAsync();

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

            var entity = _mapper.MapPut(datasetPut);

            // TODO:
            await _repository.PutDatasetAsync(entity, datasetId);

            await _unitOfWork.SaveChangesAsync();
        }