Пример #1
0
        public async Task <IAssetCategory> AddAsync(IAssetCategory assetCategory)
        {
            await _assetCategoryRepository.AddAsync(assetCategory);

            await _myNoSqlWriter.TryInsertOrReplaceAsync(AssetCategoryNoSql.Create(assetCategory));

            return(assetCategory);
        }
Пример #2
0
        public async Task UpdateAsync(IAssetCategory assetCategory)
        {
            await _assetCategoryRepository.UpdateAsync(assetCategory);

            await _myNoSqlWriter.TryInsertOrReplaceAsync(AssetCategoryNoSql.Create(assetCategory));
        }