public virtual async Task <ProductAssetCategoryDto> CreatePeriodAsync(Guid productAssetCategoryId,
                                                                              CreateProductAssetCategoryPeriodDto input)
        {
            var productAssetCategory = await GetEntityByIdAsync(productAssetCategoryId);

            await CheckMultiStorePolicyAsync(productAssetCategory.StoreId, UpdatePolicyName);

            productAssetCategory.AddPeriod(
                ObjectMapper.Map <CreateProductAssetCategoryPeriodDto, ProductAssetCategoryPeriod>(input));

            await _repository.UpdateAsync(productAssetCategory, true);

            return(await MapToGetOutputDtoAsync(productAssetCategory));
        }
 public virtual Task <ProductAssetCategoryDto> CreatePeriodAsync(Guid productAssetCategoryId, CreateProductAssetCategoryPeriodDto input)
 {
     return(_service.CreatePeriodAsync(productAssetCategoryId, input));
 }