public async Task <IAssetCategory> AddAsync(IAssetCategory assetCategory) { await _assetCategoryRepository.AddAsync(assetCategory); await _myNoSqlWriter.TryInsertOrReplaceAsync(AssetCategoryNoSql.Create(assetCategory)); return(assetCategory); }
public async Task UpdateAsync(IAssetCategory assetCategory) { await _assetCategoryRepository.UpdateAsync(assetCategory); await _myNoSqlWriter.TryInsertOrReplaceAsync(AssetCategoryNoSql.Create(assetCategory)); }