private    async Task UpdateConversionRateAsync(CreateOrUpdateConversionRateInput input)
        {
            Debug.Assert(input.ConversionRate.Id != null, "input.ConversionRate.Id should be set.");

            var conversionRate=input.ConversionRate.MapTo<BaseConversionRateInfo>();
                conversionRate.LastModifierUserId = AbpSession.UserId;
                conversionRate.LastModifierUserName ="";
                conversionRate.LastModificationTime = Clock.Now;
            await _conversionRateRepository.UpdateAsync(conversionRate );
            cacheHandler.Remove(CacheCategoryConversionRate, "GetConversionRateList");
        }
 private    async Task CreateConversionRateAsync(CreateOrUpdateConversionRateInput input)
  {
      var conversionRate = input.ConversionRate.MapTo<BaseConversionRateInfo>();
          conversionRate.Id = GuidHelper.NewGuid();
          conversionRate.CreatorUserId = AbpSession.UserId;
          conversionRate.CreatorUserName ="";
          conversionRate.CreationTime = Clock.Now;
      await _conversionRateRepository.InsertAsync(conversionRate );
      cacheHandler.Remove(CacheCategoryConversionRate, "GetConversionRateList");
  }
 /// <summary>
 /// 添加修改实体
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task CreateOrUpdateConversionRate(CreateOrUpdateConversionRateInput input)
 {
     if (input.ConversionRate.Id != null && input.ConversionRate.Id != Guid.Empty)
     {
         await UpdateConversionRateAsync(input);
     }
     else
     {
         await CreateConversionRateAsync(input);
     }
 }