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(); } } }
public virtual async Task CreateAsync(SettingInfo settingInfo) { await _settingRepository.InsertAsync(settingInfo.ToSetting()); }
public virtual void Create(SettingInfo settingInfo) { _settingRepository.Insert(settingInfo.ToSetting()); }
public virtual async Task CreateAsync(SettingInfo settingInfo) { await _settingRepository.InsertAsync(settingInfo.ToSetting()); }