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();
                }
            }
        }
Exemple #3
0
        public virtual async Task CreateAsync(SettingInfo settingInfo)
        {
            await _settingRepository.InsertAsync(settingInfo.ToSetting());

            await _unitOfWorkManager.Current.SaveChangesAsync();
        }
Exemple #4
0
 public void Create(SettingInfo settingInfo)
 {
     _settingRepository.Insert(settingInfo.ToSetting());
     _unitOfWorkManager.Current.SaveChanges();
 }
 public Task CreateAsync(SettingInfo setting)
 {
     _settings.Add(setting.ToSetting());
     return(_context.SaveChangesAsync());
 }