public virtual async Task <ProductAssetCategoryDto> UpdatePeriodAsync(Guid productAssetCategoryId, Guid periodId, UpdateProductAssetCategoryPeriodDto input) { var productAssetCategory = await GetEntityByIdAsync(productAssetCategoryId); await CheckMultiStorePolicyAsync(productAssetCategory.StoreId, UpdatePolicyName); var productAssetCategoryPeriod = productAssetCategory.GetPeriod(periodId); ObjectMapper.Map(input, productAssetCategoryPeriod); await _repository.UpdateAsync(productAssetCategory, true); return(await MapToGetOutputDtoAsync(productAssetCategory)); }
public virtual Task <ProductAssetCategoryDto> UpdatePeriodAsync(Guid productAssetCategoryId, Guid periodId, UpdateProductAssetCategoryPeriodDto input) { return(_service.UpdatePeriodAsync(productAssetCategoryId, periodId, input)); }