public virtual void Create(SettingInfo settingInfo)
 {
     using (_unitOfWorkManager.Current.SetTenantId(settingInfo.TenantId))
     {
         using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant))
         {
             _settingRepository.Insert(settingInfo.ToSetting());
             _unitOfWorkManager.Current.SaveChanges();
         }
     }
 }
 public virtual async Task CreateAsync(SettingInfo settingInfo)
 {
     using (_unitOfWorkManager.Current.SetTenantId(settingInfo.TenantId))
     {
         using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant))
         {
             await _settingRepository.InsertAsync(settingInfo.ToSetting());
             await _unitOfWorkManager.Current.SaveChangesAsync();
         }
     }
 }
        public virtual async Task CreateAsync(SettingInfo settingInfo)
        {
            using (_unitOfWorkManager.Current.SetTenantId(settingInfo.TenantId))
            {
                using (_unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant))
                {
                    await _settingRepository.InsertAsync(settingInfo.ToSetting());

                    await _unitOfWorkManager.Current.SaveChangesAsync();
                }
            }
        }
Example #4
0
 public virtual async Task CreateAsync(SettingInfo settingInfo)
 {
     await _settingRepository.InsertAsync(settingInfo.ToSetting());
 }
 public virtual void Create(SettingInfo settingInfo)
 {
     _settingRepository.Insert(settingInfo.ToSetting());
 }
Example #6
0
 public virtual async Task CreateAsync(SettingInfo settingInfo)
 {
     await _settingRepository.InsertAsync(settingInfo.ToSetting());
 }